6
6

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.

docker1.3ではdocker stopしてもIPとポートを維持する。

6
Last updated at Posted at 2014-10-06

注意

結局このPullリクエストは後続のバージョンでも反映されることはなかったようです。

記事

この変更、凶悪かも。
https://github.com/docker/docker/pull/8297

dockerの次バージョンからdocker stopしてもコンテナのIPとpublicなポートを維持するようになるようです。
docker rmしないと解放してくれません。dockerサービスを再起動した場合などもちゃんと状態を復元するみたい。

同じ役割を持つコンテナを立ち上げる場合は古いコンテナをstopだけでなく削除しておかないといけないですね。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?