Home  >  Q&A  >  body text

docker-registry - docker registry push后不成功,并且ping https了

为什么最后会去get https了 而且我怀疑都没push成功 因为都没返回id之类的

我创建registry image语句是
docker run -d -p 5000:5000 registry 在浏览器里也只能访问192.168.99.100:5000(环境是osx)

伊谢尔伦伊谢尔伦2758 days ago678

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-24 09:14:17

    If you only use the answer above locally, it should be fine. If you use it remotely, it is recommended to use secure mode. I built a registry in the ubuntu system and encountered this problem during remote use. Here is the information I compiled, I hope it will be useful to you. Helps.

    reply
    0
  • PHPz

    PHPz2017-04-24 09:14:17

    Solved it myself.
    Enter the corresponding docker-machine and modify the /var/lib/boot2docker/profile file EXTRA_ARGS='
    --label provider=virtualbox
    '

    is EXTRA_ARGS='
    --label provider=virtualbox --insecure-registry (ip corresponding to docker-machine):5000
    '

    After saving, go out and restart the corresponding machine

    reply
    0
  • Cancelreply