Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Cannot build bytom with docker Ubuntu 18.04 #1429

Open
Triplebaconator opened this issue Oct 29, 2018 · 2 comments
Open

Cannot build bytom with docker Ubuntu 18.04 #1429

Triplebaconator opened this issue Oct 29, 2018 · 2 comments

Comments

@Triplebaconator
Copy link

Triplebaconator commented Oct 29, 2018

Got the issue Friday when I was working on this. Figured since it said temporary error I would try again today, however the issue still remains.

Error below:

steve@steve:~/go/src/github.com/bytom$ sudo docker build -t bytom .
Sending build context to Docker daemon 214.7MB
Step 1/9 : FROM golang:1.9-alpine as builder
---> b0260be938c6
Step 2/9 : RUN apk add --no-cache make git
---> Running in 39922675f19f
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz: temporary error (try again later)
ERROR: unsatisfiable constraints:
git (missing):
required by: world[git]
make (missing):
required by: world[make]
The command '/bin/sh -c apk add --no-cache make git' returned a non-zero code: 2

Update, currently using Linux Hyper-V virtual box on a windows host. Have attempted a traceroute, and ping to dl-cdn.alpinelinux.org, both successfully, so i'm not sure what the problem is

@SebastianElvis
Copy link

SebastianElvis commented Dec 30, 2018

It seems that the alpine base container cannot retrieve apks. This may be due to your network environment. Try the following stuff:

  1. If you cannot connect to the corresponding apk URL via your browser without proxy, use something like Shadowsocks proxy
  2. Modify the network mode of Docker to bridge or direct connect (I don't remember the details)
  3. Try to modify the network mode of Virtualbox as well

@HAOYUatHZ
Copy link
Contributor

plz let us know if the above answer help. so that we can close the issue, thx!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants