Questions tagged [docker-compose]
The docker-compose tag has no summary.
82 questions
1
vote
1
answer
59
views
Docker Container Mount Name, Type and other values
I am writing a bash script and I am aware that I can get information of the mounts attached to a container using docker inspect --format '{{.Mounts}}' <container-name> which gives a result such ...
0
votes
0
answers
104
views
Connect to docker container through host via ssh without RemoteCommand
I have a server that runs multiple docker containers. I can access my server via SSH, and have set up my ssh_config to allow me to ssh into certain containers that I regularly access:
Host ...
2
votes
1
answer
139
views
docker can't access to some tagged images
I'm facing with the following error using docker on my Linux Ubuntu system.
ubuntu@ubuntu:~$ docker version
Client: Docker Engine - Community
Version: 28.0.1
API version: 1.48
...
3
votes
1
answer
4k
views
In Podman, how to disable "Executing external compose provider" message when using "podman compose"?
I installed Podman Desktop app v. 1.18.1 on macOS Sequoia.
If I execute:
podman compose version
… I get this on the console:
>>>> Executing external compose provider "/usr/local/bin/...
0
votes
1
answer
118
views
Starting a systemd user service for a docker rootlesskit user
I run my docker stuff with a dedicated user, and installed the docker rootlesskit. I start docker with systemctl --user start docker.service. Everything related to docker, executed with that user, ...
0
votes
1
answer
1k
views
How to Configure Cgroup V2 limits on docker-compose containers
I want to configure cgroups V2 resource limitation on a Docker-Compose container. How do I do this?
1
vote
1
answer
101
views
how to have vpn traffic routed to pihole
i have a pihole server running in docker compose on my Debian Linux server. i also host a wireguard vpn (also in docker compose) running on the same server. by using the tcpdump command i have ...
0
votes
1
answer
52
views
How to send messages from the serviceA running in a docker container to the serviceB running on the host?
I hava a senrio as follow:
on basic.target stage. My host start running a serviceB, which create a unix socket file "/tmp/.test_sock" when service started.
on the multi-user.target stage. ...
0
votes
0
answers
90
views
How to connect volumes running in docker for Owncloud to the host's vm folders?
I am trying to configure Owncloud in docker. The docker-compose yaml I am using look like this:
services:
owncloud:
image: owncloud/server:10.15
container_name: owncloud_server
restart: ...
0
votes
1
answer
2k
views
Podman and Docker: Sharing a network and/or hostname resolution between services?
So I have a docker network named home that all of my root-based (or docker containers that were simply too hard to port to podman) containers live.
sudo docker network ls
NETWORK ID NAME ...
1
vote
1
answer
731
views
How to get docker-compose back in Fedora 41?
After upgrading Fedora 40 to 41, docker-compose was no longer available.
When I try to re-install with sudo dnf install docker-compose, it raises the following conflicts:
- installed package docker-...
2
votes
0
answers
788
views
How can I get a docker compose container's replica number from inside it, without special tools?
I have a docker compose project where one of the services launches several replicas using the replicas directive. The replicas have automatically enumerated names, which also serve as hostnames. ...
0
votes
1
answer
49
views
Run a VPN server alongside a website served by Docker
I have a server running this CMS as a website by running a Docker file like this by docker-compose which internally uses nginxproxy/nginx-proxy and nginxproxy/acme-companion Docker images.
Now, I ...
1
vote
1
answer
199
views
Why can't "dig" on rockylinux 9 find a container/host named "https" in a docker compose network?
Sorry I don't know if this is a docker issue or a dig issue on rockylinux 9. Everything works as expected on rockylinux 8.
I have a docker-compose.yml file below with a service named https. That ...
-1
votes
1
answer
468
views
syslog logging driver giving the error protocol wrong type for socket
I have a service defined via docker compose (see definition below). When I tried to start this service via docker-compose -f up --wait -d my_service, I get the error
Error response from daemon: ...
0
votes
0
answers
705
views
Docker Compose not synchronising file changes in volume
Reposting from here as I don't quite understand how the "solution" works.
Symptom:
As reported here:
I mount my local files into the container for development. My docker-compose.yml file is ...
1
vote
1
answer
71
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 ...
0
votes
0
answers
1k
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 ...
0
votes
0
answers
566
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 ...
0
votes
1
answer
121
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 ...
1
vote
1
answer
173
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 \
&...
0
votes
0
answers
2k
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. ...
0
votes
0
answers
661
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 &...
1
vote
2
answers
11k
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 ...
2
votes
1
answer
881
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 ...
0
votes
0
answers
2k
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:...
3
votes
1
answer
673
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 ...
0
votes
1
answer
485
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/...
0
votes
0
answers
873
views
Docker compose fails with connection error although there is internet connection
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 470B ...
1
vote
0
answers
124
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 ...
1
vote
1
answer
380
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 ...
0
votes
1
answer
463
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&...
0
votes
0
answers
180
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 ...
4
votes
2
answers
13k
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 ...
1
vote
1
answer
1k
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 ...
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 /...
2
votes
1
answer
365
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 ...
0
votes
1
answer
109
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 ...
2
votes
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' ([...
1
vote
1
answer
122
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 ...
1
vote
1
answer
103
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.
...
1
vote
0
answers
154
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
4k
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 ...
3
votes
1
answer
2k
views
Installed package docker-compose-plugin but can only start it from /usr/libexec/docker/cli-plugins/docker-compose
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/...
0
votes
0
answers
2k
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 ...
1
vote
1
answer
78
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
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"
...
6
votes
1
answer
4k
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 ...
2
votes
1
answer
3k
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/...
0
votes
1
answer
849
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-...