--insecure-registryOSごと設定まとめ
- dockerでprivate registryにpushするときに、OSごとに違うのでまとめてみた
CentOS
# /etc/sysconfig/docker
export other_args="--insecure-registry ooooo.oooo.com:5000"
Docker for Mac
- GUIで設定するらしいDocker for Mac --insecure-registry の設定方法
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']"
その他
- あれば追加いたします!