【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

浏览器查看




相关推荐
s***45316 分钟前
Linux 下安装 Golang环境
linux·运维·golang
JobDocLS27 分钟前
Ubuntu22.04的安装方法
运维
w***765541 分钟前
用docker启动mysql步骤
mysql·docker·容器
p***q781 小时前
docker离线安装及部署各类中间件(x86系统架构)
docker·中间件·系统架构
d***95621 小时前
docker 安装 mysql
mysql·adb·docker
豆豆的java之旅2 小时前
深入浅出Activity工作流:从理论到实践,让业务流转自动化
java·运维·自动化·activity·工作流
4***17542 小时前
Linux 下安装 Golang环境
linux·运维·golang
Lenyiin2 小时前
《 Linux 修炼全景指南: 七 》 指尖下的利刃:深入理解 Vim 的高效世界
linux·运维·服务器·vim·lenyiin
sulikey4 小时前
Linux基础指令与权限管理深度解析:从入门到精通
linux·运维·服务器·ubuntu·centos·linux命令·linux权限
陌生人~4 小时前
docker安装redis
redis·docker