search

Home  >  Q&A  >  body text

docker-compose启动一个容器的时候报WARNING: Found orphan containers

WARNING: Found orphan containers (new, mysql) 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.

我的确有new和mysql两个容器,可是相互是独立的,也好好的正常运行着,不知道为什么会提示这个

为情所困为情所困2804 days ago4256

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-25 09:04:17

    You wrote docker-compose.yml, but the service it describes does not contain your new and mysql, so Docker thinks that these two containers do not belong to the service and need to be cleaned up

    reply
    0
  • Cancelreply