Docker Community Forums

Share and learn in the Docker community.

Pull-through cache TLS handshake timeout

insecure-registry

#1

Hi folks,

Been trying over the last few days to set a registry as a pull-through cache.
Always getting a panic TLS handshake timeout.

Any idea what’s going wrong?

Thanks a lot for any help,
Riccardo


time=“2018-12-27T10:34:00Z” level=warning msg=“No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable.” go.version=go1.7.6 instance.id=fb0a12d2-8df5-4b97-843e-f6fbfa760a7a version=v2.6.2
time=“2018-12-27T10:34:00Z” level=info msg=“redis not configured” go.version=go1.7.6 instance.id=fb0a12d2-8df5-4b97-843e-f6fbfa760a7a version=v2.6.2
time=“2018-12-27T10:34:00Z” level=info msg=“Starting upload purge in 44m0s” go.version=go1.7.6 instance.id=fb0a12d2-8df5-4b97-843e-f6fbfa760a7a version=v2.6.2
time=“2018-12-27T10:34:00Z” level=info msg=“using inmemory blob descriptor cache” go.version=go1.7.6 instance.id=fb0a12d2-8df5-4b97-843e-f6fbfa760a7a version=v2.6.2
time=“2018-12-27T10:34:00Z” level=info msg=“Starting cached object TTL expiration scheduler…” go.version=go1.7.6 instance.id=fb0a12d2-8df5-4b97-843e-f6fbfa760a7a version=v2.6.2
panic: Get https ://registry-1.docker.io/v2/: net/http: TLS handshake timeout

goroutine 1 [running]:
panic(0xb4ccc0, 0xc42030a040)
/usr/local/go/src/runtime/panic.go:500 +0x1a1
github. com/docker/distribution/registry/handlers.NewApp(0x1066800, 0xc420385110, 0xc42036aa80, 0x1066800)
/go/src/github. com/docker/distribution/registry/handlers/app.go:312 +0x17d4
github. com/docker/distribution/registry.NewRegistry(0x7f56c5459130, 0xc420385110, 0xc42036aa80, 0xc42036aa80, 0x0, 0x0)
/go/src/github. com/docker/distribution/registry/registry.go:86 +0x213
github. com/docker/distribution/registry.glob…func1(0x108e180, 0xc42030bf50, 0x1, 0x1)
/go/src/github. com/docker/distribution/registry/registry.go:55 +0x106
github. com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).execute(0x108e180, 0xc42030bf00, 0x1, 0x1, 0x108e180, 0xc42030bf00)
/go/src/github. com/docker/distribution/vendor/github.com/spf13/cobra/command.go:495 +0x190
github. com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).Execute(0x108e320, 0xc4201bff40, 0xc4200001a0)
/go/src/github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:560 +0x3c3
main.main()
/go/src/github.com/docker/distribution/cmd/registry/main.go:24 +0x2d

config.yml

version: 0.1
log:
fields:
service: registry
storage:
cache:
blobdescriptor: inmemory
filesystem:
rootdirectory: /var/lib/registry
http:
addr: :5000
headers:
X-Content-Type-Options: [nosniff]
tls:
certificate: /var/lib/registry/cert.pem
key: /var/lib/registry/key.pem
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3
proxy:
remoteurl: https ://registry-1.docker.io

docker version
Client:
Version: 18.09.0
API version: 1.39
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:48:57 2018
OS/Arch: linux/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 18.09.0
API version: 1.39 (minimum version 1.12)
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:16:44 2018
OS/Arch: linux/amd64
Experimental: false


uname -a

Linux kolla-deploy 4.4.0-141-generic #167-Ubuntu SMP Wed Dec 5 10:40:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux