Questions tagged [docker-compose]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Docker compose fails with connection error although there is internet connection

=> [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 470B ...
0 votes
0 answers
28 views

Crontab job that runs a command inside a docker container not working

So in my todo list django website i have a command that has to run in the prod enviroment everyday at 10am inside a docker container that is located in "home/ubuntu/prod/todo/docker-compose-prod....
  • 101
1 vote
0 answers
24 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 ...
  • 11
0 votes
1 answer
23 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 ...
  • 111
-1 votes
1 answer
50 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
51 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 ...
0 votes
2 answers
457 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 ...
0 votes
0 answers
230 views

How can I configure NextAuth behind Nginx in a local environment?

I hope you can help me. Currently I'm working with a local environment with docker compose, I built a NextJS site with NextAuth. I've configured a Nginx as a proxy, but I have a problem when I try to ...
0 votes
0 answers
41 views

Docker do not link virtual interfaces to virtual network(bridge)

When create and start my all instances everything looks fine but even though do routing properly, my instances still cannot communicate each others. I have use this this command for each instance. ip ...
1 vote
1 answer
557 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 ...
  • 143
4 votes
1 answer
449 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 /...
  • 327
2 votes
1 answer
81 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
0 answers
331 views

How I can replace using sed the docker-compose volume from bind mount to normal volume?

Both any my coleagues share a common docker-compose.yml (using a version controll system) all of my coleagues use WSL whilst I use pure linux. For my coleagues to setup a postges this works fine: ...
0 votes
1 answer
34 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 ...
1 vote
0 answers
428 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
51 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
31 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. ...
  • 32.7k
1 vote
0 answers
47 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
2k 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,414
1 vote
1 answer
457 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/...
  • 365
0 votes
0 answers
310 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 ...
  • 365
0 votes
0 answers
603 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 ...
  • 365
0 votes
0 answers
941 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
30 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
796 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" ...
2 votes
0 answers
1k 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
242 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 ...
  • 113
1 vote
1 answer
819 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
391 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-...
  • 212
0 votes
0 answers
605 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
424 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/...
  • 365
0 votes
1 answer
260 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' ...
  • 183
0 votes
1 answer
1k 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 ...
  • 26.9k
1 vote
1 answer
136 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
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 ...
  • 1
2 votes
0 answers
681 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
541 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
4k 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 ...
  • 212
2 votes
1 answer
1k 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/...
  • 765
0 votes
1 answer
2k 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
997 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
1k 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
656 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
615 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 ...
  • 12.2k
0 votes
1 answer
488 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
111 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
86 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
687 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
781 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, :::...
  • 212
1 vote
1 answer
1k 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,457