3
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コマンドメモ(fish)

Posted at

Dockerコマンドメモ(fish)

最近dockerとfishをよく使う。
fishでdockerのコマンドを実行しようとしたらbash,zshばかり…。
docker+bashとかの情報はよくあるけど、docker+fishはないことが多いので、メモしておきます。
まあ、kubernetesが主流になって使わないかもだけど・・・。

Kill all running containers

fish
docker kill (docker ps -q)

Delete all stopped containers (including data-only containers)

fish
docker rm (docker ps -a -q)

Delete all ‘untagged/dangling’ () images

fish
docker rmi (docker images -q -f dangling=true)

Delete ALL images

fish
docker rmi (docker images -q)
3
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
3
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?