Skip to main content

Questions tagged [docker-compose]

The tag has no usage guidance.

2 votes
1 answer
341 views

How to check smart status from within a Docker container?

I would like to run this command from within a docker-compose container: nvme smart-log /dev/nvme0n1p1 Unfortunately I get this error: /dev/nvme1n1p1: No such file or directory How do I map this ...
1 vote
0 answers
457 views

How to change a file in /etc inside a docker container using dockerfile?

I have a docker application, I want to append the word "Hellow" to the passwd file inside the docker container. I made this change to Dockerfile: RUN echo "Hellow" >> /etc/...
4 votes
3 answers
9k views

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 ...
4 votes
1 answer
5k views

“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: ...
2 votes
1 answer
2k views

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 ...
1 vote
0 answers
1k views

Docker-proxy prevents container to start after reboot

I have a PC used as a NAS running a NextCloud instance as a set of docker containers managed via docker-compose, I'll provide the docker-compose.yml below. My problem is that, even though all my ...
1 vote
1 answer
1k views

Why won't journalctl show logs when the program output is piped?

I'm trying to run my docker-compose containers via a systemd service, and have fail2ban read their logs. However, docker-compose adds a prefix like: container_name_1 | Actual log message So what I'...
0 votes
1 answer
1k views

How to set an Odoo docker container using local database?

I am trying to set an Odoo docker container that will use a local postgres database. What kind of configuration params should I use in a docker-compose to make that possible? I could use some help ...
0 votes
1 answer
116 views

Upgraded docker but old configuration is running after reboot

I upgraded my Docker install on my Ubuntu system the other day. According to my docker version command I am on version 19.03.8 for the client and 18.09.9 on the server. I had my original docker-...
0 votes
1 answer
3k views

Docker image with python and crontab

I am trying run a docker container with python code and crontab (scheduler) below is my script: Docker file FROM ubuntu:latest MAINTAINER [email protected] RUN apt-get update && apt-get ...
2 votes
1 answer
2k views

how should I set the volume of docker-swarm

I am planning to move docker-compose to docker-swarm for multi nodes. I have used docker-compose like this below version: '3' services: python: container_name: python build: ./python ...
2 votes
0 answers
1k views

Auto rebuild docker container after any code change

I'm running two containers using docker-compose. Is there an option to force docker-compose to rebuild and to run the container after any code change? If so, I would like to get an example. If it isn'...
0 votes
1 answer
477 views

unable to run "docker-compose up" after replaced Docker Desktop for Windows by Docker Toolbox

Scenario: I had my docker-compose.yml working as expected when I was using Docker Desktop For Windows (here is Windows 10 Pro). Since I had to use also Virtual Box + Minishift in same Notebook I read ...
0 votes
1 answer
603 views

Automatically publish packages to a BaGet/Nuget running in Docker with Docker Compose

I am setting up a development environment in Docker. As part of that, I need to run a local NuGet server to host private NuGet packages. I've picket BaGet (https://loic-sharma.github.io/BaGet/) and ...
1 vote
1 answer
581 views

Can user privilege of docker container impact permission of host machine on mounted volume in docker-compose.yml?

I have docker-compose.yml as below, version: '2' services: mysql: image: centos/mysql-56-centos7:latest restart: always container_name: mysql environment: - ...

15 30 50 per page
1 2 3 4 5
6