I set up a local registry for testing purposes on a Linux PC running Ubuntu 18.04:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
The registry is up and running but I can’t pull the images from another host insecurely, although /etc/docker/daemon.json
looks like this:
$ cat /etc/docker/daemon.json
{
"insecure-registries" : ["192.168.0.145:5000"]
}
From the other host I can list the repositories of the registry:
root@sbcx:~# curl -X GET http://192.168.0.145:5000/v2/_catalog
{"repositories":["camera-capture-opencv","image-classifier-service"]}
When I try to pull an image, I get this error, however:
# docker pull 192.168.0.145:5000/image-classifier-service:1.1.91-arm32v7
Error response from daemon: Get https://192.168.0.145:5000/v2/: http: server gave HTTP response to HTTPS client
Docker version on the registry side:
$ docker version
Client: Docker Engine - Community
Version: 19.03.1
API version: 1.40
Go version: go1.12.5
Git commit: 74b1e89
Built: Thu Jul 25 21:21:05 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.1
API version: 1.40 (minimum version 1.12)
Go version: go1.12.5
Git commit: 74b1e89
Built: Thu Jul 25 21:19:41 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.6
GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc:
Version: 1.0.0-rc8
GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f
docker-init:
Version: 0.18.0
GitCommit: fec3683
Docker version on the other host side:
# docker version
Client:
Version: 3.0.6
API version: 1.40
Go version: go1.12.5
Git commit: a63faebc
Built: Wed Jun 19 23:09:02 2019
OS/Arch: linux/arm
Experimental: false
Server:
Engine:
Version: 3.0.6
API version: 1.40 (minimum version 1.12)
Go version: go1.12.5
Git commit: b07f53d
Built: Thu Jun 20 03:28:26 2019
OS/Arch: linux/arm
Experimental: false
containerd:
Version: v1.2.6
GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc:
Version: 1.0.0-rc8
GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f
docker-init:
Version: 0.18.0
GitCommit: fec3683
Any help would be greatly appreciated.