Nexus:Docker: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{| | valign="top" | '''Recipe Types:''' ────────────────────────────────────────── nexus...") |
|||
Line 85: | Line 85: | ||
==References== | ==References== | ||
* [https://blog.sonatype.com/using-nexus-3-as-your-repository-part-3-docker-images Configure Nexus Docker Registry] | * [https://blog.sonatype.com/using-nexus-3-as-your-repository-part-3-docker-images Configure Nexus Docker Registry] | ||
* [https://stackoverflow.com/questions/59634926 No Basic Auth Credentials] | |||
* [https://help.sonatype.com/repomanager3/formats/docker-registry Nexus Docker Registry] | * [https://help.sonatype.com/repomanager3/formats/docker-registry Nexus Docker Registry] | ||
* [[Nexus]] | * [[Nexus]] |
Revision as of 01:45, 23 August 2020
Recipe Types: ────────────────────────────────────────── nexus/repository/recipe/types ─┬──────────────────────────────────────── ├─ group ├─ proxy └─ host |
Repositories: ────────────────────────────────────────── https://cdn.chorke.org/nexus/repository/ ─┬──────────────────────────────────────── ├─ docker-registry/ [proxy] ├─ docker-private/ [host ] └─ docker-group/ [group] |
Blob Store
Admin : https://cdn.chorke.org/nexus/#admin/repository/blobstores Path : /nexus-data/blobs/docker-registry Name : docker-registry
Admin : https://cdn.chorke.org/nexus/#admin/repository/blobstores Path : /nexus-data/blobs/docker-private Name : docker-private
Admin : https://cdn.chorke.org/nexus/#admin/repository/blobstores Path : /nexus-data/blobs/docker-group Name : docker-group
Repository
Admin : https://cdn.chorke.org/nexus/#admin/repository/repositories HTTP : 8083 V1 API : enable Deploy : Allow redeploy Storage : docker-private Name : docker-private
Admin : https://cdn.chorke.org/nexus/#admin/repository/repositories USE HUB : enable proxy : https://registry-1.docker.io Storage : docker-registry Name : docker-registry
Admin : https://cdn.chorke.org/nexus/#admin/repository/repositories HTTP : 8082 Members : docker-private, docker-registry Storage : docker-group Name : docker
Security
vim /etc/docker/daemon.json
{
"insecure-registries": [
"hub.chorke.org:8082",
"reg.chorke.org:8083"
],
"disable-legacy-registry": true
}
vim ~/.docker/config.json
{
"auths": {
"hub.chorke.org:8082": {
"auth": "YWRtaW46YWRtaW4xMjM="
},
"reg.chorke.org:8083": {
"auth": "YWRtaW46YWRtaW4xMjM="
}
}
docker pull hub.chorke.org:8082/httpd:2.4-alpine
docker tag academia-http-server:1.0.0 reg.chorke.org:8083/academia-http-server:1.0.0
docker push reg.chorke.org:8083/academia-http-server:1.0.0