LoginSignup
0
0

More than 1 year has passed since last update.

docker-compose up -d時にThe container name "/XXX" is already in use by container.

Last updated at Posted at 2020-05-30

docker-compose up -d時にThe container name "/XXX" is already in use by container.

$ docker-compose up -d
Creating XXX ... error
ERROR: for XXX  Cannot create container for service XXX: Conflict. The container name "/XXX" is already in use by container. You have to remove (or rename) that container to be able to reuse that name.

以前に起動したコンテナと名前が重なっているので、以下の通りdocker rmで不要なコンテナを削除して再実行して解決

$ docker rm $(docker ps -aq)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0