Questions tagged [docker-compose]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
88 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 "...
0
votes
2answers
16 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: ...
0
votes
1answer
23 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 ...
6
votes
0answers
7k 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 ...
0
votes
1answer
21 views

How to setup docker in read_only mode in docker-compose

Many guides shows, it is good to make the container in read_only mode. However, how to do this in docker-compose? Many containers save logs at least, so they need r+w permission. How do you setup ...
0
votes
0answers
18 views

Docker rootless cannot open privileged ports

docker rootless, docker compose, Ubuntu 20.04 LTS, I used this setting in docker-compose: cap_add: - NET_BIND_SERVICE Or typed this in terminal sudo setcap cap_net_bind_service=ep $HOME/...
1
vote
1answer
22 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 ...
0
votes
0answers
30 views

fatal: unable to mkdir /var - docker in read-only mode

I configured docker to run rootless and use tmpfs: /temp and read_only: true in docker-compose. I deploy containers by docker-compose up and get errors: s6-overlay-preinit: fatal: unable to mkdir /...
1
vote
1answer
73 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
0answers
54 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/...
0
votes
0answers
14 views

docker-compose creates a network which is not inside the company's VPN

Intro I have a microservice running inside a docker container. The docker container is running on the company's server (Debian 10) with the IP address 141.45.146.55. The companys IP addresses are of ...
0
votes
0answers
172 views

volumes -type is a required property Docker-Compose

I have a docker-compose.yml like so version: '3.4' services: basic-mern-app: image: server build: . volumes: - .:/usr/src/app: links: - mongodb environment: ...
0
votes
0answers
17 views

How do I ensure docker containers can access host volume data after a restart?

I have several Docker containers suffering from the same problem: after they're restarted or re-created, they lose access to some files in their host mounted volumes. The files are still visible ...
0
votes
0answers
16 views

mount directory in docker container for nginx-webserver, using docker-compose // Piwigo Nginx NAS Docker

I'm trying to mount a specific directory from a docker host system to a Nginx-Webserver, using docker-compose, but I couldn't reach the expected content in the web application (Piwigo Photo-Gallery). ...
0
votes
0answers
10 views

Is it possible to change the device of docker named volume without loosing data?

I have multiple named volumes created with the following docker-compose: gitlab: restart: always image: gitlab/gitlab-ee:latest volumes: - gitlab-config:/etc/gitlab - gitlab-log:/...
0
votes
1answer
1k 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: ...
0
votes
0answers
16 views

ssh to a remote debian docker container instance bridege

I have docker instance created by docker-compose in bridge network. I get the ip by docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq) with ip /...
0
votes
0answers
86 views

how to setup docker compose network settings for getting a DHCP address from my LAN

how can i build a docker using docker-compose to get a dedicated IP from my DHCP server in the LAN. I have the following code working on my NAS, but i need to migrate to an ubuntu 20.04 that doesnt ...
0
votes
0answers
21 views

How to bridge two adapters inside a Docker container?

Imagine you have a Raspberry Pi with wlan0 and eth0. Wlan0 is connected to the internet, and eth0 is connected to some downstream hardware like another Pi. There is dnsmasq running as a DHCP server to ...
0
votes
0answers
357 views

How to name a MACVLAN adapter in Docker compose?

I can name a bridge network public0 like so: version: '2' ... networks: public: driver: bridge driver_opts: com.docker.network.bridge.name: public0 Then ip a shows: 873: public0: <...
0
votes
1answer
165 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 ...
0
votes
0answers
22 views

Inter-machine communication through ephemeral ports with Docker

I have two machines with two instances of a general-purpose Docker container (specifically, it's ROS) and on one Linux machine I run the server application roscore which advertises its services on ...
1
vote
0answers
180 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 ...
0
votes
0answers
150 views

docker-compose up on ubuntu (WSL): failing with ConnectionRefusedError: [Errno 111]

I tried installing docker-compose in WSL because for some reason it wasn't working even though it had worked in the past. I was trying to run a docker-compose file (which works fine when ran in ...
1
vote
1answer
58 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'...
4
votes
3answers
3k 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 ...
0
votes
0answers
24 views

Docker - Supervisord container with Nginx (sudo user)

I have created a base image with supervisord installed. Summary of steps: FROM ubuntu:20.04 Then I installed some base utilities (time zone/nano/sudo/zip etc) FROM current_timezone/base-utils:1.04 ...
0
votes
0answers
96 views

Docker container with delayed disk I/O (cache)

I'm using docker-compose to run a non-essential container that generates some logs. It is not a lot of data, and the data is not important to me. Is it possible to have the docker-container cache/...
0
votes
0answers
12 views

Keep Docker from adding networks to host

I've written a docker-compose file with a few containers, and networks for communication between them. These networks are only for communication between containers, but for some reason docker adds all ...
0
votes
0answers
662 views

Cannot connect docker to AWS RDS instance

I have an AWS RDS instance setup with the engine as Postgres. I have stored url of the database in an .env file. Now I am using Docker to run my project and access the RDS database from inside the ...
0
votes
1answer
37 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
1answer
270 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 ...
1
vote
1answer
152 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 ...
1
vote
0answers
701 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'...
1
vote
1answer
883 views

Getting WordPress on an Nginx proxy to work with a subdirectory

I'm trying to use the WordPress official Docker container to serve content from https://example.com/blog. An Nginx instance sits in front of WordPress and handles all the SSL-ishness. Nginx is ...
0
votes
1answer
273 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
1answer
2k 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 docker@ekito.fr RUN apt-get update && apt-get ...
0
votes
1answer
255 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 ...
1
vote
1answer
175 views

Can user privilege of docker container impact permission of host machine on mounted volume in docker-compose.yml?

I have docker-compose.yml as below, version: '2' services: mysql: image: centos/mysql-56-centos7:latest restart: always container_name: mysql environment: - ...