126
82

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 runの--rmオプション(コンテナ終了時にコンテナ自動的に削除)べんりです

Posted at

sudo docker run -i -t ubuntu /bin/bash
みたいなコマンドで遊ぶと思いますが、何度もやると、終了したコンテナがいっぱい溜まってしまうので、(いっぺんに消す方法はググればいっぱい出てきます。)毎度コンテナが消えてもいいという人は、rmオプション(コンテナ終了時にコンテナ自動的に削除)というのがあるので、遊ぶ際はこれと併用するといいと思います
sudo docker run -it --rm ubuntu /bin/bash

126
82
1

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
126
82

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?