Question

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

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.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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?

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…