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.

--

--