本地镜像推送到Harbor

简介: 本地镜像推送到Harbor

1.这个是我创建的项目

2.打tag

[root@localhost harbor]# docker tag nginx:latest 192.168.31.50:8009/dev/nginx:latest

3.登录到本地仓库

 
[root@localhost harbor]# docker login 192.168.31.50:8009
Username: admin
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
 
Login Succeeded

4.推送

[root@localhost harbor]# docker push 192.168.31.50:8009/dev/nginx:latest
The push refers to repository [192.168.31.50:8009/dev/nginx]
a1bd4a5c5a79: Pushed
597a12cbab02: Pushed
8820623d95b7: Pushed
338a545766ba: Pushed
e65242c66bbe: Pushed
3af14c9a24c9: Pushed
latest: digest: sha256:557c9ede65655e5a70e4a32f1651638ea3bfb0802edd982810884602f700ba25 size: 1570

PS:这个需要配置docker才可以推送,可以看我的Harbor安装

相关文章
|
8月前
|
开发工具 git
Gitlab配置mirrorRepository 镜像仓库
Gitlab配置mirrorRepository 镜像仓库 🔊业务场景📆1.在a项目中点击settings-》repository-》mirroring repositories📌tips🧣最后的话
250 0
|
11月前
|
数据安全/隐私保护 Docker 容器
Docker将自己的镜像推送给到Dockerhub
Docker将自己的镜像推送给到Dockerhub
123 0
|
Ubuntu 数据安全/隐私保护 Docker
|
应用服务中间件 nginx 容器
Kubernetes-连接Harbor仓库拉取镜像
准备工作 Harbor 镜像仓库服务器,我的服务器IP是192.168.242.132; Kubernetes集群节点能通过【docker login】命令登录Harbor仓库,详细设置步骤参考这篇博文 开始配置 创建secret k...
3832 0
|
2月前
|
存储 安全 数据库
搭建Harbor镜像仓库
搭建Harbor镜像仓库
172 2
|
2月前
|
Java Docker 容器
docker常用命令,及推送镜像到dockerhub
docker常用命令,及推送镜像到dockerhub
81 0
|
2月前
|
Kubernetes 安全 测试技术
Docker|kubernetes|本地镜像批量推送到Harbor私有仓库的脚本
Docker|kubernetes|本地镜像批量推送到Harbor私有仓库的脚本
168 0
|
安全 Linux 数据安全/隐私保护
阿里云镜像仓库:拉取和推送Docker镜像
阿里云镜像仓库:拉取和推送Docker镜像
22282 2
阿里云镜像仓库:拉取和推送Docker镜像
|
12月前
|
安全 Java Docker
docker<应用分享>--本地镜像上传dockerhub、从dockerhub拉取镜像
注册账号并登录 首先在docker hub注册账号 docker hub地址:docker hub
|
NoSQL 关系型数据库 MySQL
六、Docker常用安装及推送至阿里云
六、Docker常用安装及推送至阿里云