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 コマンド

Last updated at Posted at 2020-06-13

Docker コマンドの備忘録。

コンテナ

コンテナの確認

  • docker container ls
  • docker ps

コンテナの確認(停止中も含む)

  • docker container ls -a
  • docker ps -a

コンテナの停止

  • docker container stop [CONTAINER ID]
  • docker stop [CONTAINER ID]

コンテナの削除

  • docker container rm [CONTAINER ID]
  • docker rm [CONTAINER ID]

イメージ

イメージの確認

  • docker image ls

イメージの削除

  • docker image rm [IMAGE ID]
  • docker rmi [IMAGE ID]

ネットワーク

ネットワークの確認

  • docker network ls

ネットワークの削除

  • docker network rm [NETWORK ID]

ボリューム

ボリュームの確認

  • docker volume ls

ボリュームの削除

  • docker volume rm [VOLUME NAME]

一括削除

  • docker system prune

一括削除(ボリューム含む)

  • docker system prune --volumes
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?