2
2

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.

CoreOsの dockerに insecure-registry環境変数追加

Last updated at Posted at 2015-12-27

環境情報

coreos-vagrant
CoreOS alpha (899.1.0)

経緯

coreos上のdockerに、private docker registry(insecure registry)に対して、docker pull/pushできるようにしたい

coreos-vagrant/user-dataを作成

以下の内容でuser-dataを作成し、
vagrant halt -> vagrant destroy -> vagrant up

#cloud-config

coreos:
  units:
    - name: "docker.service"
      drop-ins:
        - name: "50-insecure-registry.conf"
          content: |
            [Service]
            Environment='DOCKER_OPTS=--insecure-registry="host:port"'
host: private docker registryが動いているサーバのホスト名
port: private docker registryのポート

参考

Using a registry without SSL configured部分

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?