0
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 1 year has passed since last update.

docker-compose down出来ない

Last updated at Posted at 2023-03-10

エラー内容

⠿ Network sample_app_default    Error

failed to remove network sample_app_local_default:
Error response from daemon: error while removing network

原因 

docker-composeを使用してコンテナを起動中に、docker-composeファイルの中身を書き換えてしまった。定義されていた情報が違うため、止められなくなっていた。 

解決 

$ docker-compose down --remove-orphans

--remove-orphans    Compose ファイルで定義していないサービス用のコンテナも削除

yml定義ファイルとは違ったとしても、composeファイルから作成されたネットワークやコンテナを自動で探して削除してくれる。
参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?