nexus3
Docker仓库
类型 | 端口 | 仓库名字 |
---|---|---|
Host | 9083 | My-docker-host |
proxy | My-docker-proxy | |
group | 9082 | My-docker-group |
创建一个存储目录
名字随便起,没有太多影响
![image-20240917104642184](../../../../../../Library/Application Support/typora-user-images/image-20240917104642184.png)
创建docker host仓库
![image-20240917104411323](../../../../../../Library/Application Support/typora-user-images/image-20240917104411323.png)
![image-20240917104515460](../../../../../../Library/Application Support/typora-user-images/image-20240917104515460.png)
![image-20240917104240181](../../../../../../Library/Application Support/typora-user-images/image-20240917104240181.png)
创建proxy仓库
![image-20240917113108378](../../../../../../Library/Application Support/typora-user-images/image-20240917113108378.png)
![image-20240917113128237](../../../../../../Library/Application Support/typora-user-images/image-20240917113128237.png)
group
![image-20240917113647416](../../../../../../Library/Application Support/typora-user-images/image-20240917113647416.png)
docker客户端配置
1 | vim /etc/docker/daemon.json |
登录
登录之后凭证保存在/.docker/config.json
或者是在,部署的时候遇到一个问题,就是jenkins打包之后docker login可以,但是push的时候就提示没有授权,暂时的解决办法是,宿主机docker login下,保存凭证,然后jenkins容器挂载/root/.docker/config.json
这个文件,jenkins打包就可以不用登录,直接推送
1 | root@anthony:~# docker login http://54.255.206.44:9083 |
1 | 镜像操作 |