I have the following Dockerfile that uses the latest Ubuntu image pulled from dockerhub:
FROM ubuntu:latest RUN apt-get update && apt-get install -y
fixed by
docker image prune -f
looks like docker has a limit on maximum apt cache size on the host system