Questions tagged [docker-compose]

68 questions
8
votes
2 answers

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 head around. I'm hosting pihole inside a container…
RedPanda
  • 183
  • 1
  • 5
5
votes
1 answer

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 possible to quit those foreground process with control-c…
Lion
  • 309
  • 1
  • 4
  • 14
4
votes
1 answer

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 /foo/*.txt /data volumes: - ./data:/data But…
s.k
  • 429
  • 1
  • 4
  • 15
3
votes
1 answer

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 problematic, because the tools in question work by…
Torque
  • 131
  • 2
3
votes
0 answers

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 limit 1MiB reached. Following the Docker…
Konrad Höffner
  • 996
  • 1
  • 16
  • 26
3
votes
1 answer

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: service1: ports: - 1234:1234 …
machillef
  • 31
  • 2
3
votes
1 answer

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 RemainAfterExit=true ExecStart=/usr/bin/docker-compose…
2
votes
1 answer

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 down. So far, my solution has been to bind my…
BobserLuck
  • 168
  • 4
2
votes
1 answer

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 just goes down. Docker compose's option restart…
2
votes
1 answer

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 until I moved my Home Assistant configuration. I did…
WoJ
  • 1,445
  • 1
  • 19
  • 38
2
votes
1 answer

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…
von spotz
  • 405
  • 3
  • 12
2
votes
0 answers

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. What I have so far As this is a home network,…
marc
  • 121
  • 3
2
votes
1 answer

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/systemd/system/nextcloud.service; enabled; vendor…
flaviut
  • 844
  • 1
  • 7
  • 15
2
votes
2 answers

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 to be running, and will run each time the system…
Sap
  • 123
  • 1
  • 4
1
vote
0 answers

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 for the Nextcloud container, the Docker volume…
wangf22
  • 11
  • 3
1
2 3 4 5