從docker的索引中下載ubuntu時(shí)總是報(bào)如下錯(cuò):
Error while retrieving image for tag: (strconv.ParseInt: parsing "": invalid syntax); checking next endpoint
運(yùn)行的命令:
docker pull ubuntu
或者
docker pull learn/tutorial
報(bào)的錯(cuò)誤是一樣的
大家有遇到過類似的情況嗎?是怎么解決的
Found a way:
Missed two places:
1. Add Docker’s repository to your local keystore
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
2. Install according to the official simple installation script. I don’t know why the docker pull ubuntu installation always fails
curl -s https://get.docker.io/ubuntu/ | sh
3. If you want to change the version, change it through docker pull ubuntu:12.04
Is the Internet connection normal? The domestic Internet is sometimes very speechless.
Is the Internet connection normal? The domestic Internet is sometimes very speechless. Another reason is that it is blocked.