【docker 】push 镜像到私服

查看镜像

复制代码
docker images

把这个hello-world 推送到私服

bash 复制代码
docker push hello-world:latest

报错了。不能推送。需要标记镜像

标记Docker镜像

bash 复制代码
docker tag hello-world:latest 192.168.2.1:5000/hello-world:latest

将Docker镜像推送到私服

bash 复制代码
docker push 192.168.2.1:5000/hello-world:latest

浏览器查看




相关推荐
linux修理工20 分钟前
ipmitool 使用简介(ipmitool sel list & ipmitool sensor list)
运维·服务器
XM-545824 分钟前
2025微信小程序wxapkg解包全攻略
linux·运维·小程序
朱杰jjj1 小时前
Docker容器中无法使用vim、vi命令处理
docker·容器·vim
朗晴1 小时前
文本编辑器VIM的使用方法!
linux·运维·服务器
东林牧之1 小时前
CICD[软件安装]:docker安装gitlab
docker·容器·gitlab
东林牧之1 小时前
CICD[导航]、docker+gitlab+harbor+jenkins从安装到部署
docker·gitlab·jenkins
小林up1 小时前
github push:ssh: connect to host github.com port 22
运维·ssh·github
梁bk4 小时前
[Nginx]反向代理和负载均衡
运维·nginx·负载均衡
(:满天星:)10 小时前
第31篇:块设备与字符设备管理深度解析(基于OpenEuler 24.03)
linux·运维·服务器·网络·centos
小陶来咯10 小时前
【仿muduo库实现并发服务器】Acceptor模块
运维·服务器