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

Using yarn 0.21.3 in docker got warning: You don't appear to have an internet connection #2850

Closed
nickeljew opened this issue Mar 7, 2017 · 7 comments

Comments

@nickeljew
Copy link

Using official docker image node:6.10.0, and yarn 0.21.3 is included. The docker environment is running on CentOS7.

The network of the docker image is ok, coz both of 'agt-get xxx' and 'npm install -g xxx' work well.

However when running yarn, I got the following warning:

Step 7/9 : RUN yarn
---> Running in 7dbcdcfcb8b9
yarn install v0.21.3
warning You don't appear to have an internet connection. Try the --offline flag to use the cache for registry queries.
[1/4] Resolving packages...
[2/4] Fetching packages...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
[3/4] Linking dependencies...


After several failed tryouts, I completed the building successfully finally.
nodejs/docker-node#353

But I still wanna know if this warning is a bug or something else should be noticed?

@flocsy
Copy link

flocsy commented Apr 5, 2017

I have pretty much the same problem. On different docker containers it works/fails, but not all the time, however there are containers where it happens 90% of the time, and on others 10%

@estilles
Copy link

Still present in 0.27.5

@tristanpemble
Copy link

@BYK
Copy link
Member

BYK commented Oct 30, 2017

This should be resolved via 1.1.0 with the addition of DNS caching. Reopen if it persists with the latest version of Yarn please.

@BYK BYK closed this as completed Oct 30, 2017
@antono
Copy link

antono commented Feb 15, 2018

Having the problem on Google App Engine (uses docker):

A  yarn run v1.3.2
 
A  warning You don't appear to have an internet connection. Try the --offline flag to use the cache for registry queries.
 

@nexorianus
Copy link

nexorianus commented Mar 22, 2018

problem still present
Docker version 17.12.0-ce, build c97c6d6
Yarn version 1.5.1
Used Docker image: node:alpine

In my case even after several minutes (like 4 to 5 info lines) it would not get anything.

@rickonji
Copy link

problem still present

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

No branches or pull requests

9 participants