Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 495 Bytes

ubuntu.md

File metadata and controls

18 lines (15 loc) · 495 Bytes

making docker work

I was getting frustrating errors from docker build that turned out to be DNS-related:

Step 7/9 : RUN apk add --no-cache bash
 ---> Running in 16abc7bce60e
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)

I added DNS to /etc/docker/daemon.json:

{
	"dns": ["8.8.8.8", "8.8.8.4"]
}

And things are swell.