【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

浏览器查看




相关推荐
shandianchengzi35 分钟前
【记录】Tailscale|部署 Tailscale 到 linux 主机或 Docker 上
linux·运维·docker·tailscale
John Song1 小时前
Linux机器怎么查看进程内存占用情况
linux·运维·chrome
肉肉心很软2 小时前
使用onlyoffice实现文件预览编辑 + Docker一键部署流程
运维·docker·容器
-大头.2 小时前
Docker实战:构建高性能MySQL主从复制集群(读写分离)
mysql·docker·容器
LuiChun2 小时前
Docker Compose 容器服务查询与文件查看操作指南(Windows Docker Desktop 版)【一】
linux·运维·windows·docker·容器
${王小剑}3 小时前
在离线ubuntu上布置深度学习环境
linux·运维·ubuntu
Java程序之猿3 小时前
Linux使用U盘安装centos及报错You might want to saue “/run/initramfs/rdsosreport.txt“ 处理
linux·运维·服务器
goodlook01234 小时前
安装最新版本docker-26.1.4
运维·docker·容器
❀͜͡傀儡师4 小时前
docker安装部署PostgreSQL带有pgvector扩展向量数据(高维数组)
docker·postgresql·容器·pgvector
CC.GG4 小时前
【Linux】进程概念(五)(虚拟地址空间----建立宏观认知)
java·linux·运维