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

Docker コンテナのライフサイクル(メモ)

Posted at

ざっくりとしたコンテナのライフサイクルは、
作成(create)→起動(start)→停止(stop)→破棄(rm)となります。

コンテナの作成・起動

docker run (オプション) イメージ (引数)

イメージをダウンロードするdocker pull、コンテナを作成するdocker create、コンテナを起動するdocker start、これらの動きをまとめて実行してくれるのがdocker run
docker runコマンドはコンテナの作成・起動、イメージがない場合はイメージのダウンロードも行ってくれます。

コンテナの停止

docker stop コンテナ名

コンテナの削除

docker rm コンテナ名
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?