I have a docker container which has NVM installed by default. when I try to install any version of node, or running command nvm ls-remote
it fails to connect to it's server every time.
the message is:
Version '6.11.2' not found - try
nvm ls-remote
to browse available versions.
this error occurs just in this network I am joining to.
it is my /etc/resolve.conf
file content:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
search SAD.UM.AC.IR
nameserver 8.8.8.8
nameserver 8.8.4.4
result of docker network ls
command is:
NETWORK ID NAME DRIVER SCOPE
dc8cffbb2789 bridge bridge local
5efb2b5fb44e host host local
8c19a2b28c14 none null local
It is just a network problem!! Is there any thing to solve this??
Finally after a discussion with @TarunLalwani , I find what is wrong in this case. The problem is that my container does not use my host machine internet, so it has no internet access. I use this command when I run the container:
docker run -it -v somewhere/:/somewhere --net=host -p 8585:8585 --name test docker-image
--net=host
added to command.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.