Docker Cannot start service as already exists

倖福魔咒の 提交于 2019-12-05 20:13:43

Your case is probably related to a bug that will be fixed in the 18.03 release. Some workarounds are proposed here:


docker-compose up builds, (re)creates, starts, and attaches to containers for a service.

Since your images are built and the containers of your service have started, you can then use

  • docker-compose stop and
  • docker-compose start

to start/stop your service. This is different from docker-compose down which:

Stops containers and removes containers, networks, volumes, and images created by up.


Regarding the danger of losing your data if a container is removed, read about persistent storage and how to use volumes.

You need to use docker-compose start instead:

$ docker-compose start --help
Start existing containers.

Usage: start [SERVICE...]
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!