Skip to content

Instantly share code, notes, and snippets.

@libkazz
Last active August 13, 2019 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save libkazz/51ca5913f3650b2e7f32214c0a7f5292 to your computer and use it in GitHub Desktop.
Save libkazz/51ca5913f3650b2e7f32214c0a7f5292 to your computer and use it in GitHub Desktop.
# コンテナにログインする
docker ps
docker exec -it {CONTAINER ID} bash
# コンテナ削除
docker ps -a -q | xargs docker rm
# イメージ削除(コンテナ削除後)
docker images -q | xargs docker rmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment