Edited at

【Docker】プライベートレジストリ`--insecure-registry`OSごと設定まとめ

More than 1 year has passed since last update.


--insecure-registryOSごと設定まとめ


  • dockerでprivate registryにpushするときに、OSごとに違うのでまとめてみた

c7e09bb7-7e4a-8df9-29c7-f6fcb48aa6f2.png


CentOS

# /etc/sysconfig/docker

export other_args="--insecure-registry ooooo.oooo.com:5000"


Docker for Mac


docker-machine

docker-machine ssh default \

"echo 'EXTRA_ARGS=\"--insecure-registry host.sever.name:port\"' \
| sudo tee -a /var/lib/boot2docker/profile \
&& sudo /etc/init.d/docker restart"


boot2docker

$ sudo vi /var/lib/boot2docker/profile

 EXTRA_ARGS="--insecure-registry ooo.oooo.com:5000"


CoreOS

#cloud-config

coreos:
units:
- name: "docker.service"
drop-ins:
- name: "50-insecure-registry.conf"
content: |
[Service]
Environment='DOCKER_OPTS=--insecure-registry="host:port"'


RancherOS

$ sudo ros config set rancher.docker.args "['daemon','--insecure-registry','docker.ooo.com:5000']"


その他


  • あれば追加いたします!


参考にした記事