My team uses Docker (with ubuntu:14.04 base image) for local development and we often have to rebuild some or all of our images. But we often get failures downl
ubuntu:14.04
In my case the problem was caused by the parent image since it had not cleared the apt cache properly.
I solve the problem including cleaning commands before the first apt update ...
RUN apt clean && \ rm -rf /var/lib/apt/lists/* && \ apt update && \ ...
Hope this helps