Questions tagged [docker-compose]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
40 views

Persist Prometheus data from a Docker Container

I'm running Prometheus and Grafana from docker-compose and basically it works. But I don't get my prometheus data to persist on my host machine. As soon as I switch my volume settings from --- version:...
Sebastian Sommerfeld's user avatar
0 votes
1 answer
113 views

building with docker compose v2 fails but legacy docker-compose v1.29.2 and docker build succeed

I have this Dockerfile FROM alpine/git as clone WORKDIR /keycloak RUN git clone https://github.com/maturbet-volta/nexus3-keycloak-plugin.git WORKDIR /cargo RUN git clone https://github.com/sonatype-...
Julien's user avatar
  • 111
0 votes
2 answers
216 views

Nextcloud Docker status keeps "Restarting (255)"

I'm running a Nextcloud instance in docker-compose on my Raspi 4 at home for some years now and update the images about every two months. My pi stopped working during todays NC update from 25.0.3 to ...
qr0n's user avatar
  • 1
0 votes
0 answers
49 views

Mount directory into docker container using overlayfs

Please advise how to mount folder from host into docker container using overlayfs and docker-compose. Finally I need to “merge” content from some folder from host (for example called tempdir1) into ...
av.gosha's user avatar
0 votes
0 answers
91 views

IP already in use via Docker Compose file error

I'm new to docker-compose and trying to create the following. My network at home is a 192.168.1.0/24 network. I have a raspberry pi with docker on it installed with IP 192.168.1.50 I want to create 2 ...
John Slegers's user avatar
0 votes
0 answers
510 views

Docker compose Error response from daemon, Ports are not available on Windows 11

I have following docker-compose.yml file: services: ## NGINX nginx: container_name: zl-nginx image: redis:alpine restart: unless-stopped networks: - reza ports: - ...
Reza Amya's user avatar
  • 101
1 vote
0 answers
437 views

How to add WireGuard container to internal Docker network to add internet connectivity?

I have two Docker networks: public which is a normal bridge network with access to the host upstream network private which is a bridge, internal: true and hosts a fleet of containers networks: ...
Paya's user avatar
  • 257
0 votes
0 answers
571 views

Cannot access Vaultwarden admin page and cannot get more users

I need some help because I do not know what I am doing wrong: The first issue is that I cannot get to access the admin page. When I access https://myvaultwardendomain.io/admin I get a 401 error ...
caesarspixel's user avatar
0 votes
2 answers
1k views

What is the correct way to restrict access to Docker containers to only allow sources on LAN

I've been trying to find a way to ensure containers selectively are only accessible from the LAN that the (Linux) docker host is part of. I've seen this question asked/answered on Reddit, Stack, and ...
ziondreamt's user avatar
0 votes
0 answers
32 views

Git on docker-compose made files

I have so many services on several folders under /srv on my server, which each of them is up by docker-compose. All files and folders under /srv/ are owned by root:root with 755 permission. For ...
Parsa Noori's user avatar
2 votes
1 answer
345 views

Create docker container with link to hardware device that doesn't exist yet

My use case: I use a containerized octoprint instance to drive a 3dprinter. The problem I'm running into is that if the printer(usb) isn't connected during the boot process of the container, then it ...
DevShot's user avatar
  • 553
0 votes
0 answers
624 views

Cannot map USB device with the docker container on Linux

I cannot map my usb device with the docker container. $ ls -l /dev/ttyUSB0 crw-rw---- 1 root dialout 188, 0 nov 27 09:28 /dev/ttyUSB0 $ groups adm dialout sudo audio kvm lpadmin docker I mapped ...
blow's user avatar
  • 101
0 votes
1 answer
399 views

Routing container to wireguard container for a certain subnet not working as expected

! See updated post at the end ! I am trying to run Wireguard in a container using docker compose on a remote host in a site-to-site configuration with my intranet at home which works flawlessly on its ...
Nicolas Göddel's user avatar
0 votes
0 answers
154 views

VNC Client docker and port forwarding

I tried to access a docker image via port forwarding on a server with VNC Viewer. I used port forwarding in a docker-compose.yml like this : ports: - "5011:5901" - "5012:22/tcp&...
prince_91150's user avatar
0 votes
1 answer
17 views

Why would a specific docker network pick a weird range?

I have two "user" networks: the LAN on 192.168.10.0/24 and Wireguard on 192.168.20.0/24. I also host on 192.168.10.2 a docker engine that powers a dozen of containers and a few networks that ...
WoJ's user avatar
  • 2,714
0 votes
0 answers
15 views

Simple Docker Swarm - Add Worker to Manager Network

Here is my situation: I have a docker-compose file and exactly 1 host, which starts up some front- and backend services. All services have the same network bridge, so that they can access each other. (...
Ben's user avatar
  • 113
0 votes
1 answer
388 views

Pass SSH options to docker-compose when deploying to a remote server (using DOCKER_HOST var)

I'm using a Vagrantbox to regularly test the setup of a physical machine. This is handled by a bash script on Ubuntu, Vagrant and Virtualbox. The setup and provisioning of the VM works. Now I want to ...
Sebastian Sommerfeld's user avatar
0 votes
1 answer
529 views

Apache Guacamole on Docker does not respond

I followed Linode's guide [1] to the letter and I'm getting ERR_CONNECTION_REFUSED from <server-address>:8080/guacamole The machine where Docker is running is Almalinux 8.5 minimal therefore I ...
mfloris's user avatar
  • 261
0 votes
0 answers
26 views

Monitor folder and subdirectories to show log in a single output

I have a local program whose execution generates many log files, which is why it is becoming difficult for me to follow its operation. I would like to know if there is any way to monitor a folder and ...
user60108's user avatar
  • 111
0 votes
1 answer
2k views

Mount SMB share (CIFS) to container using secured credentials or token

I have a docker-compose setup that runs my Linux development environment on Windows. A number of these containers need to mount smb drives using LDAP credentials. The way this woks now is by adding a ...
dovidweisz's user avatar
0 votes
0 answers
1k views

Cannot access a docker hosted webserver from external network

I’m in the process of migrating a small personal website from a virtualbox vm to a docker container that is hosted on my personal computer. But I get into an issue where I get a "connection timed ...
djo0012's user avatar
  • 101
0 votes
0 answers
157 views

minecraft private server user sources

Hi i try setup private server itzg/minecraft-server for my kids (host is ubuntu). i use docker-compose version: "3.8" services: minecraft-server: image: itzg/minecraft-server ...
Developer's user avatar
  • 267
0 votes
1 answer
189 views

Why COMPOSE_PROJECT_NAME is not visible from --env-file?

I deploy my stack with command docker-compose --env-file up --detach, but specified project name is not assigned. When I set up it as environment variable then it works COMPOSE_PROJECT_NAME=proj ...
Eugen Konkov's user avatar
0 votes
1 answer
719 views

Docker Swarm - Containers can ping between nodes, cannot communicate over TCP ports

I'm setting up a new Docker Swarm mode cluster on three Linux machines - all brand new installations. All three machines have their firewalls and security modules (AppArmor) disabled and I could ...
PGEL's user avatar
  • 1
0 votes
1 answer
61 views

what is the docker-compose.exporters.yml in this repo and how to call it?

I was reviewing a repo for a monitoring system and I saw a docker composer like this\ Repo link I ran the project as usual by docker-compose up, but I want to know what is docker-compose.exporters....
Amir's user avatar
  • 557
0 votes
1 answer
120 views

How do I add export CLI='docker run -it --entrypoint cardano-cli -e NETWORK=testnet ...' so I can run CLI on Mac OS Monterey zshrc

I have tried adding the following export CLI='docker run -it --entrypoint cardano-cli -e NETWORK=testnet -e CARDANO_NODE_SOCKET_PATH=/ipc/node.socket -v cardano-node-ipc-testnet:/ipc inputoutput/...
Deano's user avatar
  • 1
0 votes
0 answers
635 views

How to mount a cifs Partition for docker-compose?

I want docker-compose to mount one of the volumes to a mounted CIFS partition. I used the seafile docker-compose file and changed the volumes to ... db: ... volumes: - /mnt/nas_share/...
A.Dumas's user avatar
  • 233
0 votes
0 answers
538 views

Using docker-compose with multiple actual users on one machine for a single project

A friend and I started working on a project together, and we wanted to try using a single remote dev environment for it. I created a VM on Oracle's Cloud Infrastructure, and created a user for my ...
Jordan Renaud's user avatar
0 votes
1 answer
2k views

docker build - use a containers network

I have a windows 10 host, using docker desktop 4.6.1. I have a docker-compose.yml which contains the two services vpn and app. What I want to achieve is, that the build process of docker already uses ...
Peter's user avatar
  • 1,006
0 votes
1 answer
716 views

How can I use GitLab under a relative URL on docker?

I'm using gitlab-ce on docker. These are my system specifications. A container of GitLab is gitlab/gitlab-ce. The web frontend is using external NGINX. GitLab is mounted under /git. I read the the ...
elda's user avatar
  • 1
1 vote
1 answer
1k views

docker-compose build error for nodejs and yarn: [gpg: no valid OpenPGP data found.]

I have been trying to get a project to work for my job. I recently got a M1 Air, however I had a similar issues when I was doing the same thing on a Windows machine with WSL. The error is as follows: ...
onibaku's user avatar
  • 53
1 vote
0 answers
1k 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-...
jack's user avatar
  • 131
0 votes
2 answers
3k views

docker-compose detach keyboard shortcut?

I'm running Docker Desktop 4.2.0 on Windows 10 Pro. Until recently, to detach from containers after running docker-compose up, I could use the keyboard shortcut CTRL + z. This stopped working. How to ...
8ctopus's user avatar
  • 146
0 votes
1 answer
252 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 ...
user52366's user avatar
  • 135
0 votes
1 answer
858 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....
emaguerra's user avatar
0 votes
1 answer
49 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?
vico's user avatar
  • 2,309
0 votes
0 answers
34 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 ...
dovidweisz's user avatar
0 votes
1 answer
433 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 ...
M.A. Heshmat Khah's user avatar
1 vote
1 answer
522 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: ./...
petekaner's user avatar
  • 121
0 votes
0 answers
1k 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 ...
cogm's user avatar
  • 191
1 vote
1 answer
245 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 ...
Paul Schuldesz's user avatar
0 votes
1 answer
760 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 ...
TheChubbyPanda's user avatar
1 vote
0 answers
594 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 ...
7Bliz's user avatar
  • 11
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 "...
Ammar's user avatar
  • 1
1 vote
2 answers
321 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: ...
Hemen's user avatar
  • 11
0 votes
1 answer
96 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 ...
Shraft's user avatar
  • 185
8 votes
0 answers
9k 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 ...
questionto42's user avatar
  • 1,705
2 votes
1 answer
5k 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 ...
user avatar
1 vote
1 answer
185 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 ...
Vishal's user avatar
  • 121
1 vote
1 answer
184 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 ...
questionto42's user avatar
  • 1,705