Skip to content

Instantly share code, notes, and snippets.

@Just4test
Created April 21, 2020 08:18
Show Gist options
  • Save Just4test/66596611a3d8650083cd670eb196c61e to your computer and use it in GitHub Desktop.
Save Just4test/66596611a3d8650083cd670eb196c61e to your computer and use it in GitHub Desktop.
Docker 备忘录
# 清除所有REPOSITORY和TAG都为<none>的镜像
docker image prune
# 清除所有TAG为<none>的镜像
docker rmi $(docker images | grep ' <none>' | awk '{print $3}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment