Skip to content

Instantly share code, notes, and snippets.

@haeramkeem
Last active October 21, 2022 21:03
Show Gist options
  • Save haeramkeem/18d76f1edcb265288b244eec8e5b0189 to your computer and use it in GitHub Desktop.
Save haeramkeem/18d76f1edcb265288b244eec8e5b0189 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