Where should I set the '--insecure-registry' flag on Mac OS?

后端 未结 7 2381
野的像风
野的像风 2020-12-04 14:25

I am using OS X 10.10. When trying to communicate with our team\'s private docker registry, it keeps giving me errors like this:

Error: Invalid registry endp         


        
7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-04 15:03

    The proper way to set it is via the --engine-insecure-registry argument to docker-machine:

    docker-machine create --driver virtualbox \
      --engine-insecure-registry myregistry:5000 dev
    

    You can also pass other options using --engine-opts. For example, set dns via --engine-opt dns=8.8.8.8

    This essentially ends up setting EXTRA_ARGS in /var/lib/boot2docker/profile

提交回复
热议问题