Questions tagged [docker-compose]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
8 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 ...
  • 111
1 vote
1 answer
26 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. ...
  • 30.8k
1 vote
0 answers
18 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 : ...
2 votes
1 answer
305 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 ...
  • 1,358
0 votes
1 answer
99 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/...
  • 323
0 votes
0 answers
61 views

Problem with installing Docker and docker-compose (Kubuntu 20.04) Installation errors

I had a broken docker and docker-compose installation so I tried to remove it as clean as possible in order to undertake a new, clean, installation. Look my previous thread So I followed these guides ...
  • 323
0 votes
0 answers
48 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 ...
  • 323
0 votes
0 answers
335 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=...
1 vote
1 answer
21 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 &...
0 votes
0 answers
282 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" ...
1 vote
0 answers
369 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 ...
0 votes
0 answers
99 views

Docker and UFW exposing internal ports

When I first installed Docker and UFW on my Raspberry Pi 4 two years ago, I stumbled across this post: How to fix the Docker and UFW security flaw Last weekend I reinstalled my Raspi and switched to ...
  • 103
1 vote
1 answer
295 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/...
  • 11
0 votes
1 answer
127 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-...
  • 192
0 votes
0 answers
336 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 ...
  • 123
0 votes
0 answers
230 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/...
  • 345
0 votes
1 answer
131 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' ...
  • 163
0 votes
1 answer
546 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 ...
  • 25.7k
1 vote
1 answer
86 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" = &...
  • 113
0 votes
0 answers
1k 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 ...
  • 1
2 votes
0 answers
433 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. ...
  • 121
0 votes
1 answer
379 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 ...
  • 113
0 votes
1 answer
2k 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 ...
  • 192
1 vote
1 answer
816 views

docker-compose up doesn't exit when containers stopped

I'm running some services through docker-compose, and launching them with systemd: $ systemctl status nextcloud.service ● nextcloud.service - HomelabOS nextcloud Service Loaded: loaded (/etc/...
  • 665
0 votes
1 answer
1k views

E: Unable to locate package postgresql-server-dev-10 in Ubuntu 18.04

I am writing a Django app with postgresql, using Docker. However, for some reason building returns the error "E: Unable to locate package postgresql-server-dev-10 The command '/bin/sh -c apt-get ...
1 vote
0 answers
639 views

Environment Variables defined in /etc/environment only show for root, not home user

I'm fairly new to linux and am setting up a server running Ubuntu 20.04 LTS. I've defined a few environment variable in /etc/environment for use in my docker-compose.yml file. I added the variables to ...
  • 11
3 votes
1 answer
960 views

FirewallD and docker: block a port from being publicly accessible

I am having some issues trying to restrict access to 2 docker containers I am currently running using Centos8 and Firewalld. First of all, the containers have the following configuration: services: ...
5 votes
1 answer
465 views

Cannot stop docker-compose logs -f with CTRL + C any more

docker-compose logs -f is a useful command to view the logs of containers in the background and follow them to see new entries immediately. It seems that with the latest stable V2.1.0 it's not ...
  • 299
1 vote
0 answers
378 views

why docker container consume huge CPU load average

I want to discuss about strange behavior on our rhel 7.6 server We installed Kafka exporter with container on the server – kafka-01 machine ( total CPU on machine are 12 ) The following yml file ...
  • 11.4k
0 votes
1 answer
215 views

alias for podman docker-compose -H unix:///run/user/$UID/podman/podman.sock up -d

This command runs containers using podman rootless with docker-compose. Is it possible to create an alias for this? docker-compose -H unix:///run/user/$UID/podman/podman.sock up -d
0 votes
1 answer
83 views

Nextcloud container can't be accessed

I'm trying to create a nextcloud setup in a debian 10 VM with https and mysql and docker-compose but when I acces https://cloud.example.org my browser says it can't be reached. If I acces the link ...
  • 15
1 vote
1 answer
51 views

how to get fresh clean docker image of my broken image in Ubuntu

Im fighting with my broken installation of Nextcloud in container. My problem is when i tried to use docker system prune -a and after that docker-compose up -d from my yml, same broken image was ...
0 votes
0 answers
318 views

Start systemd service if path exists

I have docker running at startup and inside docker some containers that need acces to a rclone mount. The problem is that docker runs before the rclone has mounted the drive and the containers don't ...
  • 1
0 votes
1 answer
553 views

Connect to a database running in a docker container via a local mysql client i.e. workbench

I have a mysql database running in a docker container docker ps 6496a209cb30 mysql:5.7.22 "docker-entrypoint.s…" 34 minutes ago Up 34 minutes 0.0.0.0:3317->3306/tcp, :::...
  • 192
0 votes
1 answer
539 views

psycopg2.OperationalError: could not connect to server: No route to host Is the server running on host "db" and accepting TCP/IP connections on port

Following the instructions here was fine on openSUSE Tumbleweed with Docker version 20.10.6-ce, build 8728dd246c3a https://github.com/mirumee/saleor-platform#how-to-run-it But on openSUSE Leap 15.3 ...
  • 1,345
0 votes
0 answers
137 views

dnsmasq container on ARM OMV5

Would like to ask for your help with something i'm working on these days. I'm running Openmediavault 5 on an ODROID HC2 (ARM). It uses systemd-resolve. I use docker containers and access everything ...
1 vote
1 answer
214 views

Is there a downside for running docker experimental features?

I know that Docker allows enabling experimental features on the daemon side in a rather simple way: Add/update /etc/docker/daemon.json: { "experimental": true } And enabling experimental ...
0 votes
0 answers
362 views

Why set -m is not working? Giving me error job control is turned off!

I am trying to execute an entryscript for docker container. I have build this image from php-fpm alpine linux (7.3 version). Once the container is started it should execute some commands in prior, I ...
7 votes
1 answer
6k views

Docker container DNS not working with pihole

I'm currently working on a little home project where i host various services on a raspberry pi 4 via docker. While working on this project i now encountered a dns problem which i can't really get my ...
  • 173
1 vote
1 answer
284 views

Can I install Docker package on openSUSE Tumbleweed (32-bit)

Problem There is a 32-bit server with Ubuntu 16.04 LTS on it. According to documentation, I cannot install Docker on a 32-bit Ubuntu: OS requirements To install Docker Engine, you need the 64-bit ...
  • 1,345
0 votes
1 answer
237 views

Issues converting docker run command to a docker-compose.yml config

I am trying to set up dhcpd in a docker image for my home network. I have cloned this repository, and had it working fine with my dhcpd.conf To run it, I have to execute this command using docker run: ...
  • 125
1 vote
1 answer
703 views

Does Docker normally fail to clean up its iptables rules?

I'm on Alpine Linux 3.13.2, iptables-1.8.6-r0, and docker-20.10.3-r0. I'm trying out Graylog 4 using their sample docker-compose .yml file. I got Graylog running as expected, then did docker-compose .....
  • 123
0 votes
2 answers
866 views

Bash-Variable subsitution in Makefile subshell

My Makefile should and does create a file /tmp/file in the docker container using make test: test: (cd subdirectory && docker-compose exec webserver bash -c "\ MYTEXT=hello ...
  • 170
1 vote
2 answers
2k views

Starting Docker without starting containers

I'm trying to build a generic system init tool, which will run on all of our systems, which verifies that local Docker images have not been altered. The tool will not know what containers are supposed ...
  • 113
1 vote
2 answers
65 views

Virtualization: Virtual Machines or Docker π

I want to clear up some ambiguity in my head. I am running a baremetal server with CentOS7 on a local business network behind NAT. Because the main software on CentOS7 requires PHP 5.4.16 and cannot ...
2 votes
1 answer
3k views

Docker-compose as Systemd unit

I have a systemd unit, that uses the command docker-compose to start and stop a given set of containers. It looks like this: [Unit] Description=... [Service] WorkingDirectory=/opt/tsc-docker ...
0 votes
1 answer
172 views

Docker-compose v3.5 with pre-excisting network and static IP not working

I am stuck with an docker-compose issue that I can not figure out. I am trying to use a compose file with a pre-excisting network and a static ip, but I keep getting the message that the network does ...
  • 1
1 vote
0 answers
2k views

How to map my host's to the container's user in docker-compose using the lebokus/docker-volume-bindfs plugin?

I have a php dev stack setup through Dockerfiles and docker-compose. I mount the source tree and composer vendor folder to the container. My host's local user philipp has id 1000 and my container uses ...
  • 13.8k