Questions tagged [docker-compose]
66 questions
8
votes
0 answers
Docker: "failed to get console mode for stdout: The handle is invalid."
When running docker-compose up in Windows PowerShell using Docker Desktop on WSL2, I get
Creating network "test_default" with the default driver
Building master
failed to get console mode for stdout: The handle is invalid.
There is a hint at failed…
questionto42
- 1,861
- 3
- 21
- 52
4
votes
1 answer
“volumes 'type' is a required property” error with docker-compose
I have just started to learn how docker works and I have a problem with the yaml file when using docker-compose.
version: '3.7'
services:
portainer:
container_name: portainer
image: portainer/portainer
volumes:
-…
florence anem
- 41
- 1
- 2
4
votes
3 answers
Docker containers cannot connect to internet in Fedora 32?
The Problem
I have recently created a docker container that has to pull a public github repository, however, it isn't able to resolve the host github.com. In fact, it isn't able to even execute ping command.
NOTE: all network operations here are…
Siddharth Singh
- 43
- 1
- 5
2
votes
1 answer
Create docker container with link to hardware device that doesn't exist yet
My use case:
I use a containerized octoprint instance to drive a 3dprinter. The problem I'm running into is that if the printer(usb) isn't connected during the boot process of the container, then it doesn't boot at all. Docker compose can't find the…
DevShot
- 783
- 1
- 8
- 13
2
votes
1 answer
How to setup docker in read_only mode in docker-compose
Many guides shows, it is good to make the container in read_only mode.
However, how to do this in docker-compose?
Many containers save logs at least, so they need r+w permission.
How do you setup containter in read_only mode? None of my solutions…
user1251775
2
votes
1 answer
How to get QEMU to use a named Docker interface?
Question
Is it possible to get QEMU to use a named Docker interface and network on the same host machine?
Motivating exmaple:
Let's say I have a DHCP server in a Docker container with static IP running as follows:
pxe_1 | Interface: eth0
pxe_1 …
Drakes
- 387
- 1
- 3
- 15
1
vote
0 answers
Persist Prometheus data from a Docker Container
I'm running Prometheus and Grafana from docker-compose and basically it works. But I don't get my prometheus data to persist on my host machine.
As soon as I switch my volume settings from
---
version: "3.3"
services:
prometheus:
image:…
Sebastian Sommerfeld
- 153
- 7
1
vote
0 answers
Docker compose Error response from daemon, Ports are not available on Windows 11
I have following docker-compose.yml file:
services:
## NGINX
nginx:
container_name: zl-nginx
image: redis:alpine
restart: unless-stopped
networks:
- reza
ports:
- 172.100.0.1:80:80
networks:
reza:
name:…
Reza Amya
- 111
- 2
1
vote
0 answers
How to add WireGuard container to internal Docker network to add internet connectivity?
I have two Docker networks:
public which is a normal bridge network with access to the host upstream network
private which is a bridge, internal: true and hosts a fleet of containers
networks:
public:
driver: bridge
private:
driver:…
Paya
- 257
- 1
- 4
- 16
1
vote
2 answers
What is the correct way to restrict access to Docker containers to only allow sources on LAN
I've been trying to find a way to ensure containers selectively are only accessible from the LAN that the (Linux) docker host is part of. I've seen this question asked/answered on Reddit, Stack, and some random other sites. They simply state when…
ziondreamt
- 111
- 3
1
vote
1 answer
Pass SSH options to docker-compose when deploying to a remote server (using DOCKER_HOST var)
I'm using a Vagrantbox to regularly test the setup of a physical machine. This is handled by a bash script on Ubuntu, Vagrant and Virtualbox.
The setup and provisioning of the VM works. Now I want to deploy containers via docker-compose fro my host…
Sebastian Sommerfeld
- 153
- 7
1
vote
0 answers
Using docker-compose with multiple actual users on one machine for a single project
A friend and I started working on a project together, and we wanted to try using a single remote dev environment for it.
I created a VM on Oracle's Cloud Infrastructure, and created a user for my friend.
We have a single repository for the project…
Jordan Renaud
- 11
- 1
1
vote
1 answer
docker-compose build error for nodejs and yarn: [gpg: no valid OpenPGP data found.]
I have been trying to get a project to work for my job. I recently got a M1 Air, however I had a similar issues when I was doing the same thing on a Windows machine with WSL. The error is as follows:
#8 8.455 ## To install the Yarn package…
onibaku
- 53
- 1
- 1
- 5
1
vote
0 answers
What's the benefit of Docker Compose Switch over a symlink?
There are at least two ways to use Docker Compose v2 as a drop-in replacement for Docker Compose v1:
Compose Switch
# ln -s /usr/local/lib/docker/cli-plugins/docker-compose /usr/local/bin/docker-compose
From the current README (2.1.0 /…
jack
- 131
- 2
1
vote
1 answer
Xubuntu 20.4, Xdebug 3 and Docker: Impossible to connect from container to host
I've been struggling with this for some time and here I am :-)
I have a php container with xdebug installed in a Ubuntu 20.04 laptop:
rest-example-php-8:
container_name: rest-php
build: ./docker/php/
expose:
- 9000
…
petekaner
- 121
- 3