Intro Docker Compose Up Found Orphan

Intro Docker Compose Up Found Orphan

這篇介紹Docker Compose Up Found Orphan。

發生情境

1
2
3
4
5
6
WARN[0000] Found orphan containers ([tomcat_1 tomcat_2 tomcat_3 tomcat_4 tomcat_5 tomcat_6 tomcat_7 
tomcat_8 tomcat_9 tomcat_10]) for this project.
If you removed or renamed this service in your compose file,
you can run this command with the --remove-orphans flag to clean it up.

$ docker-compose up -d --remove-orphans