7
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

DockerでERROR: 2 matches found based on name: network XXXXX_default is ambiguousエラーが出た場合

Posted at

概要

docker-compose up時に、ERROR: 2 matches found based on name: network XXXXX_default is ambiguousエラーが出た場合の対処法

(私の場合はRubyMineでdocker-compose upを二回叩いてしまってこのエラーが出ました)

$ docker-compose up
ERROR: 2 matches found based on name: network my_rails_default is ambiguous

操作

重複しているdockerネットワークを確認

$ docker network ls
NETWORK ID          NAME                    DRIVER              SCOPE
3b7ed7e650f7        my_rails_default   bridge              local
0d73ba605d99        my_rails_default   bridge              local

重複しているdockerネットワークを削除

Docker network rm 0d73ba605d99

重複しているdockerネットワークを削除したら、docker-compose upでエラーがなくなりました。

以上

7
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
7
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?