Skip to content

Instantly share code, notes, and snippets.

@jarek-przygodzki
Created September 27, 2017 08:11
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jarek-przygodzki/4a7181a155ee2de131f4ff42e3c0c5c9 to your computer and use it in GitHub Desktop.
Save jarek-przygodzki/4a7181a155ee2de131f4ff42e3c0c5c9 to your computer and use it in GitHub Desktop.
$ cd /var/lib/docker
$ btrfs subvolume delete btrfs/subvolumes/*
@brianfinley
Copy link

Perfectly simple solution to an issue docker should handle itself. Thanks!

@vadikrobot
Copy link

docker rmi $(docker images --quiet --filter "dangling=true")

@mark2185
Copy link

mark2185 commented Aug 9, 2022

If anyone uses buildkit, the btrfs subvolume delete btrfs/subvolumes/* command might cause the system to be unable to build images using buildkit.

The solution that worked for me is removing /var/lib/docker/* with rm -rf and reinstalling docker again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment