0
1

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 3 years have passed since last update.

docker registryにクライアントPCからhttpでアクセス

Last updated at Posted at 2021-01-07

環境

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.1 LTS
Release:	20.04
Codename:	focal
$ docker -v
Docker version 20.10.1, build 831ebea

手順

/etc/docker/daemon.jsonを作成、registryを指定

daemon.json
{ "insecure-registries": [ "192.168.1.1:5000" ] }

docker再起動

$ sudo systemctl daemon-reload
$ sudo systemctl restart docker

ちょっと躓いた

内容

/etc/docker/daemon.jsonにinsercure-registriesを記載しても反映されない

解決

daemon.json「"」と「:」の間にスペースがあったため

# OK
{ "insecure-registries": [ "192.168.1.1:5000" ] }

# NG
{ "insecure-registries" : [ "192.168.1.1:5000" ] }

その他

一度設定できてしまえば、空白があっても反映できるようになった

参考

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?