Hello all,
I've just downloaded Nexus 3 m6, and been trying out docker support
I've followed Manfred videos from :
Even though some stuff has changed between m5 and m6 (such as some properties that have moved from etc/custom.properties to etc/org.sonatype.nexus.cfg), I think I got the configuration right.
I do :
$ bin/nexus restart
$ tail -f data/log/nexus.log
and I get :
2015-12-28 18:18:35,687-0500 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.ServerConnector - Started ServerConnector@51c56766{HTTP/1.1,[http/1.1]}{
0.0.0.0:8081}
2015-12-28 18:18:35,694-0500 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.util.ssl.SslContextFactory - x509=X509@498bb21(mydomain,h=[],w=[]) for SslContextFactory@7e1c1283(file:///Users/adah/Downloads/nexus-3.0.0-b2015110601/etc/ssl/keystore.jks,file:///Users/adah/Downloads/nexus-3.0.0-b2015110601/etc/ssl/keystore.jks)
2015-12-28 18:18:35,825-0500 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.ServerConnector - Started ServerConnector@777d0dd6{SSL,[ssl, http/1.1]}{
0.0.0.0:8443}
2015-12-28 18:18:35,826-0500 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.Server - Started @19361ms
2015-12-28 18:18:35,827-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer -
-------------------------------------------------
Started Sonatype Nexus OSS 3.0.0-b2015110601
-------------------------------------------------
2015-12-28 18:18:35,836-0500 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.ServerConnector - Started ServerConnector@9eeba7b{SSL,[ssl, http/1.1]}{
0.0.0.0:18444}
2015-12-28 18:18:35,840-0500 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.ServerConnector - Started ServerConnector@233733b4{SSL,[ssl, http/1.1]}{
0.0.0.0:18443}
so far, so good - SSL seems to be setup ok, as well as my 2 Docker specific connectors
Then, I did a :
but I got :
v2 ping attempt failed with error: Get
https://192.168.1.15:18443/v2/: x509: cannot validate certificate for 192.168.1.15 because it doesn't contain any IP SANs
v1 ping attempt failed with error: Get
https://192.168.1.15:18443/v1/_ping: x509: cannot validate certificate for 192.168.1.15 because it doesn't contain any IP SANs. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry 192.168.1.15:18443` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/
192.168.1.15:18443/ca.crt
well, ok, so I updated my docker daemon configuration with --insecure-registry
192.168.1.15:18443
and then, I retried :
Error response from daemon: Unexpected status code 404
and the nexus log :
2015-12-28 18:23:48,689-0500 INFO [qtp972380136-91] *UNKNOWN org.apache.shiro.session.mgt.AbstractValidatingSessionManager - Enabling session validation scheduler...
2015-12-28 18:23:48,701-0500 INFO [qtp972380136-91] *UNKNOWN org.sonatype.nexus.security.internal.AnonymousManagerImpl - Using default configuration: AnonymousConfiguration{enabled=true, userId='anonymous', realmName='NexusAuthorizingRealm'}
hmmm... not sure how to interpret those logs...
so I tried logging in :
Username: admin
Password:
WARNING: login credentials saved in /Users/adah/.docker/config.json
Login Succeeded
and then I retried :
Error response from daemon: Unexpected status code 404
and no additional logs from nexus.log - so apparently I needed to login
Maybe search is not working (even though I ticked the box for v1 api), so I tried with pull :
Using default tag: latest
Error: image postgres:latest not found
and I got in the logs :
2015-12-28 18:27:21,790-0500 WARN [qtp972380136-104] admin org.sonatype.nexus.repository.docker.internal.V2Handlers - Error: GET /v2/postgres/manifests/latest: 401 - org.sonatype.nexus.repository.docker.internal.V2Exception: access to the requested resource is not authorized
2015-12-28 18:27:21,821-0500 WARN [qtp972380136-104] admin org.sonatype.nexus.repository.docker.internal.V2Handlers - Error: GET /v2/postgres/manifests/latest: 404 - org.sonatype.nexus.repository.docker.internal.V2Exception$ManifestUnknownByTag: manifest unknown
2015-12-28 18:27:21,822-0500 WARN [qtp972380136-104] admin org.sonatype.nexus.repository.docker.internal.V2Handlers - Error: GET /v2/postgres/manifests/latest: 404 - org.sonatype.nexus.repository.docker.internal.V2Exception$ManifestUnknownByTag: manifest unknown
well, now I'm stuck, I don't know what to do next to make docker support work in nexus3...
Nexus gurus, I'm asking for your help, please help me !
Thanks in advance,
Anthony