24
27

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Last updated at Posted at 2016-06-28

--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']"

その他

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

参考にした記事

24
27
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
27

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?