Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Wget/Fetch in docker build image #1341

Closed
huijian222 opened this issue Jan 6, 2018 · 2 comments
Closed

Can't Wget/Fetch in docker build image #1341

huijian222 opened this issue Jan 6, 2018 · 2 comments
Labels

Comments

@huijian222
Copy link

Info:

  • Docker version 17.12.0-ce, build c97c6d6
  • Laradock commit (7fc3a9c):
  • System info (Ubuntu 16.04.3 LTS):
  • System info disto/version:

Issue:

When i build nginx image.I get stuck on the step 5:
`Step 5/10 : RUN apk update && apk upgrade && apk add --no-cache bash && adduser -D -H -u 1000 -s /bin/bash www-data

---> Running in 853191097c3a
fetch http://mirrors.aliyun.com/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
`
After long time,return error with code 2


Expected behavior:

I think the problem is DNS,but when i try to PING.It worked well.So i dont know what happen.



Relevant Code:

Step 1/10 : FROM nginx:alpine
 ---> e9b19873bc49
Step 2/10 : MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
 ---> Using cache
 ---> 1fe897d19c28
Step 3/10 : ADD nginx.conf /etc/nginx/
 ---> Using cache
 ---> c04ea6269dc7
Step 4/10 : RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories
 ---> Using cache
 ---> 96b70d282f1c
Step 5/10 : RUN apk update     && apk upgrade     && apk add --no-cache bash     && adduser -D -H -u 1000 -s /bin/bash www-data
 ---> Running in 853191097c3a
fetch http://mirrors.aliyun.com/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
@stale
Copy link

stale bot commented Feb 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Feb 2, 2020
@stale
Copy link

stale bot commented Feb 23, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant