Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [docker-compose]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
54 views

Container occasionally not part of network

I've a Docker container that is started via docker-compose. The configuration file specifies that it should be part of two networks. However, on occasion (approximately one in five runs), the ...
Daniel Walker's user avatar
0 votes
0 answers
83 views

Docker bridges have no-carrier with sytemd-networkd

My docker containers connected to a bridge network aren't able make outbound connections. I found out that two of the bridge networks had no carrier. I believe, I am currently running systemd-networkd ...
CodeCraft's user avatar
0 votes
0 answers
37 views

A problem with mastodon behind nginx

I've tried to run an instance for myself in mastodon and went through this guide and I made a few changes such as, I changed it to single user mode and I did not set up SMTP at all. Anyway now there ...
Ashkan's user avatar
  • 1
0 votes
0 answers
99 views

Permission denied when mounting volume with podman in fedora

I use a docker-compose.yml file to boot my containers. My container mount to a external volume which targets a directory inside my user profile (postgres database files). However, after switching from ...
mesx's user avatar
  • 101
0 votes
0 answers
11 views

How to avoid the need to make changes on the base image and re-build the small-app container to get changes in?

I have two separate projects. One is the base code shared among several smaller projects and the second one is just one smaller project with updates on the UI by overriding some CSS and so on but this ...
ReynierPM's user avatar
  • 843
0 votes
0 answers
24 views

NET CORE - Error uploading files through DOCKER + LINUX + STORAGE WINDOWS

I have the following problem. When trying to upload a file to my api (net core 3.1) that runs on docker on a Linux machine, and the storage where I need to save these upload files and I get an access ...
Somdesp's user avatar
0 votes
0 answers
568 views

Why can't I enable systemd services created with podman generate?

Given this setup: --- version "3" services: wireguard: image: "lscr.io/linuxserver/wireguard" container_name: "wireguard" cap_add: - "NET_ADMIN&...
telometto's user avatar
  • 1,985
0 votes
0 answers
62 views

Error 404 appears when running apt-get update. Debian [duplicate]

When I run the docker-compose build command, the Dockerfile does not build and I get the following error: [app 2/21] RUN apt-get update && apt-get install -y zlib1g-dev libzip-dev libonig-dev ...
BloodyCayman's user avatar
0 votes
1 answer
52 views

docker bridge can't reach external address defined as `route via`

I have 3 raspberry pi in a daisy-chain network, with ip routes and iptables accept fwd - all three hosts can reach each others: A <--> B <--> C However a container from docker-compose ...
earcam's user avatar
  • 101
0 votes
1 answer
113 views

docker-compose fails to change ownership on ubuntu 22.04.3 on VMware Workstation

VMware Workstation: 16.2.5/17.0.2 Ubuntu: 20.04.6/22.04.3 Dockerfile: FROM debian:12.1-slim WORKDIR /root RUN groupadd -f ernie-1001 -g 1001 \ && groupadd -f ernie-1000 -g 1000 \ &...
Ernie Sanderson's user avatar
0 votes
0 answers
849 views

How can I run a local instance of AdGuard Home on Ubuntu Server?

I want to run AdGuard Home on my Ubuntu Server (23.04) and point the router to the server in order to block ads etc. on my network. However, I'm running into all sorts of issues in regards to ports. ...
telometto's user avatar
  • 1,985
0 votes
0 answers
512 views

RUN apt-get update is not running

FROM php:7.3.33-apache-bullseye RUN docker-php-ext-install -j$(nproc) mysqli opcache RUN docker-php-ext-install pdo_mysql RUN docker-php-ext-install sockets # Instalar ifconfig RUN apt-get update &...
Carlos Fernandez Deus's user avatar
0 votes
0 answers
572 views

Docker Error - cgroup mountpoint does not exist: unknown

I have a Python/Flask application (Docker) that calls a Docker in Docker (DinD) process but when that call happens, I see: 2023-07-07T02:21:28.733399366Z Traceback (most recent call last): 2023-07-...
Perry Hoekstra's user avatar
0 votes
0 answers
677 views

Embed script into docker container to run after main process starts

For a particular docker image (based on alpine) I want to run some custom code after the container starts. I want that code inside the container, so it's easy to use and everything is self-contained. ...
lonix's user avatar
  • 1,773
0 votes
1 answer
4k views

Docker Permissions issue accessing `/dev/dri` Device

I have a permissions problem. I am running Photoprism inside a Docker container on Ubuntu 22.04. I want to use Intel QuickSync hardware transcoding. To do this, the app needs to access the /dev/dri ...
Eddified's user avatar
  • 101
2 votes
1 answer
467 views

VPN To a Specific Docker Network

My goal is to find a solution that would alow me to host specific ports and services publically on a VPS while having other administrative UI's that might interact with said public services buttoned ...
BobserLuck's user avatar
0 votes
0 answers
1k views

Connection refused for unsecure Gitlab container registry

I'm hosting a gitlab-ce instance with runners on a Ubuntu 22.04.2 LTS server with docker compose : version: '3.7' services: web: image: 'gitlab/gitlab-ce:latest' restart: always hostname:...
Baks's user avatar
  • 41
3 votes
1 answer
527 views

Is it impossible to use systemd for services that will not have a PID like docker/docker-compose/podman results?

I want to systemd-ize our docker/docker-compose/podman setups, but it seems that systemd is incapable of properly dealing with service units that end without leaving a process behind. That is ...
Torque's user avatar
  • 131
0 votes
1 answer
296 views

How to connect eth0 with docker custom network

The big picture: I need to build an automatic testing environment which will allow me to test port scanning tools. This is github repo which I am using as a playground: https://github.com/...
Boycott OpenAI sellouts's user avatar
0 votes
0 answers
710 views

Docker compose fails with connection error although there is internet connection

=> [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 470B ...
RP McMurphy's user avatar
1 vote
0 answers
93 views

Nextcloud Docker container doesn't sync data to VirtualBox host

Setup: Over the past week I've been trying to set up a Nextcloud Docker instance on an Ubuntu Server VM, in my old 2015 Macbook Pro using VirtualBox and Vagrant. While the VM only has limited storage ...
wangf22's user avatar
  • 11
0 votes
1 answer
272 views

How to synchronize files between a NixOS declarative container and local system path (equivalent of docker-compose volumes functionality)?

I have NixOS 22.11 set up on a local workstation. I use extra-container package, which can run declarative NixOS containers like imperative containers, without system rebuilds. I'm trying to run a ...
protob's user avatar
  • 251
0 votes
1 answer
309 views

terminal output is broken in docker compose output

Im facing an issue with how the log in docker compose looks like, seems somehow broken as shown below ==> Emulator is ready : '1' is not completely override the previous output "please wait&...
Amr Kamel's user avatar
  • 121
0 votes
0 answers
102 views

struggling to install Jenkins with docker compose

I'm having an issue where a jenkins agent can't access Docker, and I'm just about ready to give up but I figured I'd try asking here first. Along with the official documentation, I've also been using ...
KernelDeimos's user avatar
3 votes
2 answers
7k views

Podman w/Docker Compose - run as user?

I'm trying out docker-compose with Podman which according to this is now supported. I run the instructions and can indeed hit the socket when running as root but when I try as user I get: permission ...
Grant Curell's user avatar
1 vote
1 answer
865 views

docker-compose and nginx: always getting 127.0.0.1 as client IP

I've created a Docker image which contains nginx server (manually installed, not using the nginx docker image). Wherever I access the web server from, I always see 127.0.0.1 as client IP address. I ...
Maxxer's user avatar
  • 143
4 votes
1 answer
2k views

docker compose entrypoint cp using wildcard: cp: cannot stat /foo/*.txt

In a docker-compose.yml file, I have an entrypoint which should copy files to a bind mount so that I can retrieve them from the host: version: '3.9' services: my-service: .... entrypoint: cp /...
s.k's user avatar
  • 461
2 votes
1 answer
254 views

systemd make service A to start B

I installed docker with snap. Every time snap updates docker, snap.docker.dockerd (default) service gets stopped and started after some time. I have a docker-compose app running so every update my app ...
Philipp Faster's user avatar
0 votes
1 answer
71 views

What is the free environment to deploy an application built with docker compose

Is there a free cloud service that allows to deploy a web application developed with JSf and Mysql. The application is built locally with docker compose using both the docker images of Wildfly and ...
Dev Learning's user avatar
1 vote
0 answers
1k views

pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 99] Cannot assign requested address)")

I have a streamlit app that requires connection to MariaDB. When I run docker-compose up I get this error: pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([...
divyashie's user avatar
1 vote
1 answer
64 views

Running a docker command in a user-service

I am migrating some apps on my home service to docker. There are several background jobs, running as user-service, using these apps. But I receive the following error Got permission denied while ...
steff123's user avatar
  • 111
1 vote
1 answer
64 views

No network access between docker container A and B

I have started two simple docker containers using docker-compose. Each container can access the host machine, the host machine can access each container, but the containers cannot access each other. ...
Ole Tange's user avatar
  • 35.6k
1 vote
0 answers
72 views

ubuntu GUI on Docker

i am new to docker I'm using it because i have a project with some dependencies and i need to speed up the process of running the code on another machine. my python code will run about 3 commands : ...
Charbel Eid's user avatar
2 votes
1 answer
3k views

What does it means when the docker daemon failed to add an interface to sandbox?

I am running several docker containers and decided to reorganize them (split the configurations into folders gathering dependent services instead of having one big heap). Everything was going fine ...
WoJ's user avatar
  • 1,555
2 votes
1 answer
1k views

Installed package docker-compose-plugin but can only start it from /usr/libexec/docker/cli-plugins/docker-compose [solved]

I installed docker-compose through $ sudo apt-get install docker-compose-plugin and as I see by the output of dpkg -L docker-compose-plugin: /. /usr /usr/libexec /usr/libexec/docker /usr/libexec/...
von spotz's user avatar
  • 435
0 votes
0 answers
1k views

How do I correctly uninstall a broken installation of Docker and how to reinstall it? (which packages are needed/which not)

how do I uninstall a broken Docker installation absolutely clean such that I can start a proper re-installation? OS is Kubuntu 20.04 Obviously I had at least some components (docker swarm) installed ...
von spotz's user avatar
  • 435
0 votes
0 answers
1k views

Failed to get D-Bus connection: No such file or directory when systemctl is run from docker as a non-root user

I am trying to run a centos+python3 based docker container as a non-root user and then trying to get the systemctl status of a host service from the container. docker run --user=3001:3001 --userns=...
Sriram 's user avatar
1 vote
1 answer
62 views

How to print logs in color with repetitive call to a function which configs the color?

I want to print logs with colored keywords. Previously I used: cd ~/Code/Docker/somerepo && docker-compose logs -f my_service \ | grep -v "Successfully connected" \ | grep -v &...
WesternGun's user avatar
0 votes
0 answers
2k views

Problem with docker network and /etc/resolv.conf

First case: I have the following docker-compose file version: '3.4' services: api: image: ${DOCKER_REGISTRY}project.api ports: - "5080:5080" - "5081:5081" ...
SomeOneOnEarth's user avatar
4 votes
1 answer
3k views

How to view the full docker compose build log? daemon.json is ignored

I want to debug a failing docker compose build --no-cache (it succeeds with the cache), however due to the log limit, I cannot see the reason for the failure, only the message output clipped, log ...
Konrad Höffner's user avatar
2 votes
1 answer
2k views

How to do offline-installation of multiple images via podman load/save

I am using an app depending on the image docker.io/library/mariadb:10.7. Images can be pulled, and saved in a tarball: podman pull \ docker.io/photoprism/photoprism:latest \ docker.io/library/...
pod's user avatar
  • 31
0 votes
1 answer
776 views

Serve files over SSL & Https using a docker container

docker-compose.yaml version: '3' services: #PHP Service app: build: context: . dockerfile: Dockerfile image: digitalocean.com/php container_name: app restart: unless-...
cookie's user avatar
  • 222
0 votes
0 answers
755 views

Docker-compose for git-repository with concrete branch

I have a task to build containers from git-repository, using docker-compose. For example: version: '2.1' services: project: image: https://github.com/my_project.git container_name: my_project ...
Jelly's user avatar
  • 133
0 votes
1 answer
503 views

SystemD JournalD cannot disable child process output

I am running SystemD version 249.7+ on a custom embedded Linux device with Kernel 5.10.50. I am using Podman 4.0.2 with Docker-Compose to run a few containers. The problem I have is that the 'conmon' ...
PhilBot's user avatar
  • 79
0 votes
1 answer
2k views

Install gitlab in one VM with docker-compose having a proxy adding https in another vm

I have a server with several virtual machines and one of those is my Proxy that direct the right domains to the right VM on the right port. I used the standard docker-compose file to create gitlab-ce ...
rubo77's user avatar
  • 29.2k
1 vote
1 answer
213 views

ZSH macro for docker-compose substitutes - for _

I'm using zsh which I understand is different to bash, but mostly similar. I decided to make a macro for my docker-compose command: dock-comp() { state="$2" if [ "$state" = &...
Protofall's user avatar
  • 113
0 votes
0 answers
2k views

docker-compose returning ERROR: build path either does not exist, is not accessible, or is not a valid URL. after update

around last week I updated my system (Arch Arm on raspberry pi using pacman -Syu) and after that update every time I try to run docker-compose up -d I get : ERROR: build path /srv/http/revProxy either ...
Arthur's user avatar
  • 1
2 votes
0 answers
1k views

Debian, docker, macvlan and static IPv6

Problem I am trying to setup a local DNS server (pihole) inside a docker container on my debian 11 server in my home network with a static IPv6, such that I can point all lookups from my router to it. ...
marc's user avatar
  • 121
0 votes
1 answer
1k views

How can cgroup.subtree_control be populated in Docker's private cgroup namespace?

For cgroupv2, by default Docker uses a private namespace for cgroups. This is controlled by the --cgroupns flag for docker run and the default-cgroupns-mode daemon option. I need to create child ...
bgfvdu3w's user avatar
  • 115
0 votes
1 answer
6k views

404 Not Found - Nginx - docker compose

It's a pretty standard docker container/setup index.php is a standard call to phpinfo(); only docker compose fails to serve this file in a browser? Dockerfile FROM php:7.4-fpm # Copy composer.lock ...
cookie's user avatar
  • 222