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

Posted March 31, 2020 3k views

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.

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.

Submit an Answer
2 answers

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?