7
4

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 5 years have passed since last update.

Dockerコンテナが network ... not found で起動できない場合の対策

Posted at

docker-composeで指定しているnetworkは存在しているのに、なぜか今まで起動していたコンテナが "network ... not found" のエラーで起動できなくなった。

% docker-compose start                 
Starting my_container ... error

ERROR: for my_container  Cannot start service my_container: network ecc448c186c605e2b416fec2434a638f6e9f77811fbb27403d1a2afa5b6d2958 not found
ERROR: No containers to start

そんな時は、下記でコンテナをネットワークに繋ぎ直して解決。

% docker network connect my_network my_container
7
4
2

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
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?