Создаем файл /etc/docker/daemon.json
:
с нашим nexus и перезапускаем докер
{
"insecure-registries": [
"your-repo:8082",
"your-repo:8083"
],
"disable-legacy-registry": true
}
Подключаемся к nexus
docker login -u admin -p admin123 your-repo:8082
Для того чтобы загрузить свой образ
docker tag your-own-image:1 your-repo:8083/your-own-image:1 docker push your-repo:8083/your-own-image:1 docker tag php56 nexus.neklodev.com:18080/php5.6:1 docker push nexus.neklodev.com:18080/php5.6:1
https://github.com/TerrenceMiao/nexus/wiki/Setup-Docker-Private-Registry-in-Nexus-Repository-OSS-3.0.0
Закачать образ из nexus после логина
docker pull nexus.neklodev.com:18080/php7.1:1
0 Comment