【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

浏览器查看




相关推荐
OPHKVPS几秒前
Anthropic官方Git MCP服务器曝三重漏洞:提示注入即可实现文件读写与远程代码执行
运维·服务器·git
正经教主4 分钟前
【docker基础】第三课:镜像管理与Dockerfile基础
运维·docker·容器
老虎06277 分钟前
Nginx
运维·nginx
loriloy8 分钟前
Docker 部署 Docmost 详细教程
docker·docmost
阿沁QWQ8 分钟前
docker使用
docker·容器·perl
lwx9148528 小时前
Linux-特殊权限SUID,SGID,SBIT
linux·运维·服务器
炘爚9 小时前
深入解析printf缓冲区与fork进程复制机制
linux·运维·算法
workflower9 小时前
注塑机行业目前自动化现状分析
运维·人工智能·语言模型·自动化·集成测试·软件工程·软件需求
小义_10 小时前
随笔 3(Linux)
linux·运维·服务器·云原生·红帽
杨浦老苏10 小时前
开源的AI编程工作站HolyClaude
人工智能·docker·ai·编辑器·开发·群晖