search

Home  >  Q&A  >  body text

ubuntu12.04 - docker pull ubuntu 总是出错

从docker的索引中下载ubuntu时总是报如下错:

Error while retrieving image for tag: (strconv.ParseInt: parsing "": invalid syntax); checking next endpoint

运行的命令:
docker pull ubuntu
或者
docker pull learn/tutorial
报的错误是一样的

大家有遇到过类似的情况吗?是怎么解决的

巴扎黑巴扎黑2819 days ago1206

reply all(3)I'll reply

  • 巴扎黑

    巴扎黑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

    reply
    0
  • 阿神

    阿神2017-04-22 08:57:37

    Is the Internet connection normal? The domestic Internet is sometimes very speechless.

    reply
    0
  • 黄舟

    黄舟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.

    reply
    0
  • Cancelreply