Skip to content

Instantly share code, notes, and snippets.

@3panda
Last active March 16, 2021 09:23
Show Gist options
  • Save 3panda/e673a8bb639663fcbc38923f580a26c7 to your computer and use it in GitHub Desktop.
Save 3panda/e673a8bb639663fcbc38923f580a26c7 to your computer and use it in GitHub Desktop.
dockerのメモ

書きかけ

全コンテナ停止

 docker stop $(docker ps -q)

全コンテナ削除

docker rm $(docker ps -q -a)

全イメージ削除

docker rmi $(docker images -q)

編集したcontainerを別イメージとして保存するコマンド

docker container commit [CONTAINER ID] [NEW NAME]

ex) CONTAINER ID abcdefgを別イメージnew001tとして保存する

docker container commit abcdefg new001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment