Docker issue on Container: “Error: ENOSPC: no space left on device”

Problem:

This error is most likely to occur when the system you are running docker and the container on is reaching the per-container size limit. Sometimes the CLI(command line) also indicates an error like: “you don’t have enough free space in /var/cache/apt/archives/”. Here it is the same problem and the following solution should fix the problem.

Solution:

Execute in your shell:
docker system prune

This should resolve the error.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store