I'm new to docker-compose
. Before, when I started containers manually, after a host reboot I had to start the containers manually.
Today I found that -after a host reboot- I had 4 containers running. Those were previously started with docker-compose
.
But docker-compose
does not work well unless you are in the proper directory with the docker-compose.yml
.
Question
How can I know what docker-compose.yml
or (which path) was used to launch the docker containers that I find already started as soon as I login after a reboot?
I tried
docker inspect xxxxx
but I could not find any clue on what docker-compose.yml
was used to launch.
docker inspect $container
to see if any restart was set for these auto up containers? – Herpetology