从docker的索引中下载ubuntu时总是报如下错:
Error while retrieving image for tag: (strconv.ParseInt: parsing "": invalid syntax); checking next endpoint
运行的命令:
docker pull ubuntu
或者
docker pull learn/tutorial
报的错误是一样的
大家有遇到过类似的情况吗?是怎么解决的
巴扎黑2017-04-22 08:57:37
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
阿神2017-04-22 08:57:37
Is the Internet connection normal? The domestic Internet is sometimes very speechless.
黄舟2017-04-22 08:57:37
Is the Internet connection normal? The domestic Internet is sometimes very speechless. Another reason is that it is blocked.