Thứ Năm, 3 tháng 9, 2015

Docker: Ubuntu image, Failed to fetch archive.ubuntu.com

Link: https://forums.docker.com/t/docker-wont-build-a-container-on-ubuntu-14-04-via-aws/1506/2

Add to Dockerfile
RUN echo "deb http://archive.ubuntu.com/ubuntu/ raring main universe" >> /etc/apt/sources.list

If stills has errors, like this:
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources  404  Not Found [IP: 91.189.91.24 80]

Change to
RUN echo "deb http://us.ubuntu.com/ubuntu/ raring main universe" >> /etc/apt/sources.list

Link: http://mmbash.de/blog/failed-fetch-with-docker-build-and-apt-get-update/
Add param  to command build --no-cache
docker build --no-cache mike/node-gitpull .


Continue ...

- Comments

0 nhận xét:

Đăng nhận xét