Skip to content

Instantly share code, notes, and snippets.

@revagomes
Forked from haeramkeem/docker-prune.sh
Created October 21, 2022 21:03
Show Gist options
  • Save revagomes/0ce3c7c5d4ed5f8a4a79df3f13387fe0 to your computer and use it in GitHub Desktop.
Save revagomes/0ce3c7c5d4ed5f8a4a79df3f13387fe0 to your computer and use it in GitHub Desktop.
how to resolve 'ERROR: readlink /var/lib/docker/overlay2: invalid argument'
#!/bin/bash
# Dealing with error: 'ERROR: readlink /var/lib/docker/overlay2: invalid argument'
# In kubernetes or docker
# Have to clear the docker cache
# docker prune will tidy the unused container, images, cache, etc.
docker system prune --all
docker volume prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment