1、从官网pull 所需要的基础镜像

docker pull microsoft/mssql-server-windows-express

2、打上私有仓库标签

docker tag microsoft/mssql-server-windows-express harbor-bj.devopshub.cn/microsoft/mssql-server-windows-express

3、推送到私有仓库

首先需要登录到私有仓库:

docker login harbor-bj.devopshub.cn

 按照提示,输入用户名和密码,然后执行下面命令,进行推送:

docker push harbor-bj.devopshub.cn/microsoft/mssql-server-windows-express

 上图镇楼~~

push images to private repostory-LMLPHP

05-11 21:46