Skip to main content

Questions tagged [docker-compose]

The tag has no usage guidance.

1 vote
0 answers
2k views

What's the benefit of Docker Compose Switch over a symlink?

There are at least two ways to use Docker Compose v2 as a drop-in replacement for Docker Compose v1: Compose Switch # ln -s /usr/local/lib/docker/cli-plugins/docker-compose /usr/local/bin/docker-...
0 votes
1 answer
412 views

docker networks and port exposure

I have troubles understanding how to create the following setup using docker-compose. Basically I have three containers (with separate docker-compose.yaml files, each started separately). I also have ...
0 votes
1 answer
1k views

I can't install virtualbox on Debian11 - Windows User

I'm a Windows-user and I have installed Debian11 through the Windows Store. I'm struggling and failing with installing VirtualBox on Debian11. I downloaded VirtualBox 6.1(.28) from here: VirtualBox 6....
0 votes
1 answer
93 views

Copy docker configuration to other PC

I’m using docker composer in order to run ChirpStack on my Windows 10 machine. I need to reinstall operating system, but how to keep working ChirpStack docker system without creating new one?
0 votes
0 answers
3k views

Can't ping service inside Docker container from the host machine

I'm running a container via docker-compose on Ubuntu 20.04, and I can't ping or curl the web server that's running inside from the host machine that's running docker. I've given the container a static ...
0 votes
0 answers
184 views

Use windows environment variables in docker-compose.yaml file

I would like my Windows Username available in my (Linux) container as $WINDOWS_USERNAME using docker-compose. But when I try accessing it with ${env:USERNAME}, I get this error: ERROR: Invalid ...
0 votes
1 answer
740 views

Docker expose port with advance firewall rules

I'm using docker-compose to deploy my app. I want to access the deployment database from my development machine. Is there a way to expose a port with a source IP address limit? Like what happens in ...
1 vote
1 answer
834 views

Xubuntu 20.4, Xdebug 3 and Docker: Impossible to connect from container to host

I've been struggling with this for some time and here I am :-) I have a php container with xdebug installed in a Ubuntu 20.04 laptop: rest-example-php-8: container_name: rest-php build: ./...
1 vote
1 answer
613 views

Docker get a list of possible environment variables

Hello! After intensive research I decided to bring this question up to the community. I started learning docker & docker-compose not long ago. My question is: How can I get a list of the possible ...
0 votes
1 answer
1k views

caddy-docker-proxy to host port

I'm running cockpit on port 9090 on my host machine. In a docker container on the host is the caddy-docker-proxy. The reverse proxy (RP) container is linked to the host ports 80 and 443. Is there any ...
1 vote
0 answers
918 views

Mounting CIFS using hostname doesn't work

This comes from an old suggestion https://github.com/moby/moby/pull/39250 on an issue. I am trying to mount a CIFS volume, config it via IP worked for me but when I try to config it using a hostname ...
0 votes
1 answer
1k views

ERROR: error pulling image configuration: error parsing HTTP 403 response body: invalid character 'F' looking for beginning of value: "Forbidden!"

I've installed docker 20.10.6 and 1.21.0 on centos linux 7 OS machine and when I run below command I get error docker-compose -f multiconnect-compose.yml up -d Error Creating network "...
2 votes
2 answers
679 views

How to limit the sum of memory used by a group of docker containers?

I am using the python API of Docker. How can I limit the memory used by a group of Docker containers? (not on Kubernetes but on a regular, vanilla Docker machine). Let's say we have container A and B: ...
1 vote
1 answer
253 views

ROS in docker-compose leads to "bash: line 0: cd: MYPROJECT: No such file or directory"

I am a clear beginner at docker and I try to create a docker-compose where two containers can see each other. It could be that this question is a duplicate of many others about the "No such file ...
0 votes
1 answer
166 views

What conditions does docker swarm use to redirect to a container?

I am using docker swarm with multiple notes and multiple instances of one docker image. As far as I know is there no influence about which container I interact with after a request. But how does the ...
8 votes
0 answers
12k views

Docker: "failed to get console mode for stdout: The handle is invalid."

When running docker-compose up in Windows PowerShell using Docker Desktop on WSL2, I get Creating network "test_default" with the default driver Building master failed to get console mode ...
2 votes
1 answer
347 views

How to check smart status from within a Docker container?

I would like to run this command from within a docker-compose container: nvme smart-log /dev/nvme0n1p1 Unfortunately I get this error: /dev/nvme1n1p1: No such file or directory How do I map this ...
1 vote
0 answers
464 views

How to change a file in /etc inside a docker container using dockerfile?

I have a docker application, I want to append the word "Hellow" to the passwd file inside the docker container. I made this change to Dockerfile: RUN echo "Hellow" >> /etc/...
4 votes
3 answers
9k views

Docker containers cannot connect to internet in Fedora 32?

The Problem I have recently created a docker container that has to pull a public github repository, however, it isn't able to resolve the host github.com. In fact, it isn't able to even execute ping ...
4 votes
1 answer
5k views

“volumes 'type' is a required property” error with docker-compose

I have just started to learn how docker works and I have a problem with the yaml file when using docker-compose. version: '3.7' services: portainer: container_name: portainer image: ...
2 votes
1 answer
2k views

How to get QEMU to use a named Docker interface?

Question Is it possible to get QEMU to use a named Docker interface and network on the same host machine? Motivating exmaple: Let's say I have a DHCP server in a Docker container with static IP ...
1 vote
0 answers
1k views

Docker-proxy prevents container to start after reboot

I have a PC used as a NAS running a NextCloud instance as a set of docker containers managed via docker-compose, I'll provide the docker-compose.yml below. My problem is that, even though all my ...
1 vote
1 answer
1k views

Why won't journalctl show logs when the program output is piped?

I'm trying to run my docker-compose containers via a systemd service, and have fail2ban read their logs. However, docker-compose adds a prefix like: container_name_1 | Actual log message So what I'...
0 votes
1 answer
1k views

How to set an Odoo docker container using local database?

I am trying to set an Odoo docker container that will use a local postgres database. What kind of configuration params should I use in a docker-compose to make that possible? I could use some help ...
0 votes
1 answer
121 views

Upgraded docker but old configuration is running after reboot

I upgraded my Docker install on my Ubuntu system the other day. According to my docker version command I am on version 19.03.8 for the client and 18.09.9 on the server. I had my original docker-...
0 votes
1 answer
3k views

Docker image with python and crontab

I am trying run a docker container with python code and crontab (scheduler) below is my script: Docker file FROM ubuntu:latest MAINTAINER [email protected] RUN apt-get update && apt-get ...
2 votes
1 answer
2k views

how should I set the volume of docker-swarm

I am planning to move docker-compose to docker-swarm for multi nodes. I have used docker-compose like this below version: '3' services: python: container_name: python build: ./python ...
2 votes
0 answers
1k views

Auto rebuild docker container after any code change

I'm running two containers using docker-compose. Is there an option to force docker-compose to rebuild and to run the container after any code change? If so, I would like to get an example. If it isn'...
0 votes
1 answer
478 views

unable to run "docker-compose up" after replaced Docker Desktop for Windows by Docker Toolbox

Scenario: I had my docker-compose.yml working as expected when I was using Docker Desktop For Windows (here is Windows 10 Pro). Since I had to use also Virtual Box + Minishift in same Notebook I read ...
0 votes
1 answer
607 views

Automatically publish packages to a BaGet/Nuget running in Docker with Docker Compose

I am setting up a development environment in Docker. As part of that, I need to run a local NuGet server to host private NuGet packages. I've picket BaGet (https://loic-sharma.github.io/BaGet/) and ...

15 30 50 per page