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
Running command below fixed problem for me:
docker system prune --force
The --force flag stands for non interactive prune.
--force