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

docker registoryアクセス時にhttp: server gave HTTP response to HTTPS clientエラーが出た場合の対策方法

Posted at

docker registoryアクセス時にエラー

Error response from daemon: Get http myreg.example.com:5000 http: server gave HTTP response to HTTPS client

Dockerデーモンの設定が足りていないので、
dockerの--insecure-registryに追記して設定を変更

/etc/systemd/system/docker.service.d/docker.conf
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon -H fd:// --insecure-registry=myreg.example.com:5000

その後、Dockerデーモンを再起動して解決

sudo systemctl daemon-reload
sudo systemctl restart docker 

参考

systemd と Docker の管理・設定
[SOLVED] ERROR: Error response from daemon: Get https://myregistry:5000: http: server gave HTTP response to HTTPS client
Dockerの設定ファイルはどこ!!
最近のUbuntu(15.04以降)でDockerの--insecure-registryの設定
「server gave HTTP response to HTTPS client」と言われてDocker Private registoryのpushやpullができなかったときの対処
プライベートDocker-Registryにhttpで接続 [Docker-ce Linux]

4
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
4
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?