Docker-alpine: Issue installing package

Created on 16 Sep 2015  路  6Comments  路  Source: gliderlabs/docker-alpine

Hi,
I am getting the following error when trying to install libstdc++ with apk

fetch http://dl-4.alpinelinux.org/alpine/v3.2/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-4.alpinelinux.org/alpine/v3.2/main: temporary error (try again later)
(1/1) Installing libstdc++ (4.9.2-r5)
ERROR: libstdc++-4.9.2-r5: temporary error (try again later)

using the 3.2 tag.
Any hints appreciated.

question

Most helpful comment

Restarting the docker service on the host seems to have fixed the issue.

All 6 comments

Looks like you cannot resolve dl-4.alpinelinux.org. Are you able to get to http://dl-4.alpinelinux.org/alpine/v3.2/main/ on the host that is trying to build/run the container? Can you give a little more information about your Docker and host setup?

@andyshinn thanks, I confirm I can get http://dl-4.alpinelinux.org/alpine/v3.2/main/ on the host.
Am building an oracle-server-jre container from docker-alpine:3.2 base.
I am just noticing that this problem occurs when I'm connecting to a remote Daemon socket (seems to work locally)

What OS is the host? Are you using something like boot2docker? In cases where VirtualBox is used you may need to disable the DNS NAT proxy per comment https://github.com/boot2docker/boot2docker/issues/451#issuecomment-65432123.

No, the OS on the host is Ubuntu 14.04.2 LTS

Restarting the docker service on the host seems to have fixed the issue.

thanks @larghir worked for me too

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dniku picture dniku  路  4Comments

robinmonjo picture robinmonjo  路  4Comments

mterzo picture mterzo  路  4Comments

nrvnrvn picture nrvnrvn  路  4Comments

kooksee picture kooksee  路  4Comments