I'm trying to run a container (systemd is pid 1) on host Ubuntu 16.04.
$ docker-compose --version
docker-compose version 1.11.2, build dfed245
$ docker --version
Docker version 17.03.0-ce, build 3a232c8
tl;dr: On Ubuntu 16.04 host docker run starts a container and my app in it with privileged: false but docker-compose up needs privileged: true. The same container runs on Fedora 25 host with privileged: false.
Which old container do I remove? I'm creating two containers from the same image; one with docker up and the other with docker-compose up. I'm sorry I didn't get what you meant.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm trying to run a container (systemd is pid 1) on host Ubuntu 16.04.
tl;dr: On Ubuntu 16.04 host
docker run
starts a container and my app in it with privileged: false butdocker-compose up
needs privileged: true. The same container runs on Fedora 25 host with privileged: false.First reported in moby/moby#28614.
Docker Image
The Docker image is built with the following Dockerfile snippet that runs systemd as pid 1 in the container.
docker run
When I use
docker run
to create container it starts and the app process starts in the container.docker-compose up
When I use
docker-compose up
the container starts but the app process does not start in the container.docker-compose.yml:
Commands:
When I modify docker-compose.yml to change privileged: false to privileged: true the container starts and so does the app inside the container.
Diffs between docker inspect
From container created by
docker run
.and
From container created by
docker-compose up
whether privileged:false or privileged:true.and
The text was updated successfully, but these errors were encountered: