Skip to content

Instantly share code, notes, and snippets.

@alexprivalov
Last active March 9, 2018 18:54
Show Gist options
  • Save alexprivalov/506f6084edf32895efaf765e523e652d to your computer and use it in GitHub Desktop.
Save alexprivalov/506f6084edf32895efaf765e523e652d to your computer and use it in GitHub Desktop.
# принудительная очистка висящих слоев, удаление остановленных контейнеров.
if docker images -f "dangling=true" | grep specific_img --quiet; then
docker rmi -f $(docker images -f "dangling=true" -q)
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment