比如要把nginx这个镜像推送到hardor仓库
[root@test 23:00:14 ~/docker]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE nginx latest dd34e67e3371 13 months ago 133MB
1.登录仓库
docker login ip:port 输入用户名和密码: Login Succeeded
2.给镜像打tag
用法:· docker tag REPOSITORY名 ip:port/项目/REPOSITORY名:TAG docker tag nginx 192.168.10.145:80/work/nginx:latest
3.推送到仓库
docker push 192.168.10.145:80/work/nginx:latest
4.查看仓库是否存在
标签:REPOSITORY,harbor,仓库,nginx,Linux,镜像,docker,推送 From: https://www.cnblogs.com/lucktomato/p/16717971.html