Error on django container launch
I cloned a fresh allgo and run the bootstrap. When I run the django container, I end up with an error on the registry and don't understand why. Here the ouput:
dev-django | ---------- make dirs ----------
dev-django | /etc/nginx/conf.d/allgo.conf: using registry 'http://dev-registry:5000'
dev-django | ---------- start nginx ----------
dev-django | nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
dev-django | 2018/06/21 13:22:28 [emerg] 12#12: host not found in upstream "dev-registry" in /etc/nginx/conf.d/allgo.conf:20
dev-django exited with code 1
The output of the registry (even I don't need to run)
dev-registry | time="2018-06-21T13:36:26.518102012Z" 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=ef02e31a-d357-44f7-84c4-f53e85bb3491 service=registry version=v2.6.2
dev-registry | time="2018-06-21T13:36:26.518177284Z" level=info msg="redis not configured" go.version=go1.7.6 instance.id=ef02e31a-d357-44f7-84c4-f53e85bb3491 service=registry version=v2.6.2
dev-registry | time="2018-06-21T13:36:26.51822301Z" level=info msg="Starting upload purge in 39m0s" go.version=go1.7.6 instance.id=ef02e31a-d357-44f7-84c4-f53e85bb3491 service=registry version=v2.6.2
dev-registry | time="2018-06-21T13:36:26.539031307Z" level=info msg="using inmemory blob descriptor cache" go.version=go1.7.6 instance.id=ef02e31a-d357-44f7-84c4-f53e85bb3491 service=registry version=v2.6.2
dev-registry | panic: unable to configure authorization (token): unable to open token auth root certificate bundle file "/vol/ro/certs/tokens.crt": open /vol/ro/certs/tokens.crt: no such file or directory
dev-registry |
dev-registry | goroutine 1 [running]:
dev-registry | panic(0xb4ccc0, 0xc4203bc120)
dev-registry | /usr/local/go/src/runtime/panic.go:500 +0x1a1
dev-registry | github.com/docker/distribution/registry/handlers.NewApp(0x1066800, 0xc42038d9e0, 0xc4203aa000, 0x1066800)
dev-registry | /go/src/github.com/docker/distribution/registry/handlers/app.go:302 +0x1b6a
dev-registry | github.com/docker/distribution/registry.NewRegistry(0x7ff0dcc75068, 0xc42038d9e0, 0xc4203aa000, 0xc4203aa000, 0x0, 0x0)
dev-registry | /go/src/github.com/docker/distribution/registry/registry.go:86 +0x213
dev-registry | github.com/docker/distribution/registry.glob..func1(0x108e180, 0xc42038acb0, 0x1, 0x1)
dev-registry | /go/src/github.com/docker/distribution/registry/registry.go:55 +0x106
dev-registry | github.com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).execute(0x108e180, 0xc42038ac60, 0x1, 0x1, 0x108e180, 0xc42038ac60)
dev-registry | /go/src/github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:495 +0x190
dev-registry | github.com/docker/distribution/vendor/github.com/spf13/cobra.(*Command).Execute(0x108e320, 0xc4201f7f40, 0xc4200001a0)
dev-registry | /go/src/github.com/docker/distribution/vendor/github.com/spf13/cobra/command.go:560 +0x3c3
dev-registry | main.main()
dev-registry | /go/src/github.com/docker/distribution/cmd/registry/main.go:24 +0x2d
dev-registry exited with code 2
When I run the bootstrap command, I have this error at the end:
+ docker tag -- centos:6 localhost:8002/allgo/dev/factory/centos:6
+ docker push -- localhost:8002/allgo/dev/factory/centos:6
The push refers to repository [localhost:8002/allgo/dev/factory/centos]
Get http://localhost:8002/v2/: dial tcp [::1]:8002: getsockopt: connection refused