Report this

What is the reason for this report?

Docker starts on boot, but where is the docker-compose.yml file?? Ubuntu 19.10

Posted on March 31, 2020
Mark

By Mark

I have inherited the config on this server. On boot, docker starts fine. I assume from /lib/systemd/system/system/docker.service

I can use systemctl stop docker.service and then docker ps -a and I see its all stoped.

On a reboot all containers are up and running.

I need to know where the file is that tells docker to start all of the containers.

There must be a docker-compose.yml somewhere but I have been unable to find it yet.

Is there a way to find how the containers are getting started? Where the running docker got its config?

Thanks all.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I even executed systemctl disable docker.service, rebooted and docker ps -a is still showing running containers…

I cant kill them. Like zombies.

I actually want to add a docker mssql image but want to know what docker config file to add them to.

I must not be getting something…

Got a little farther, but I am more confused now.

systemctl disable docker.service and systemctl disable docker.socket does stop docker on boot.

So where is docker getting its config to find containers on boot?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.