一台服务器将docker image打包去另一天服务器安装这个镜像

news/2025/2/25 2:08:35

一台服务器docker image打到去另一天服务器安装这个镜像

1. 打包

docker save -o nebula-graph-studio.tar harbor1.vm.example.lan/dockerio/vesoft/nebula-graph-studio

xxx.tar 是打包好的文件
后面的是 docker image

在这里插入图片描述

2.另一台服务器执行

在这里插入图片描述
docker load -i /root/nebula-graph-studio.tar

[root@hcss-ecs-2ff4 ~]# docker load -i /root/nebula-graph-studio.tar
d4fc045c9e3a: Loading layer [==================================================>]  7.667MB/7.667MB
aaad419b6686: Loading layer [==================================================>]  1.536kB/1.536kB
e0e11f0c451a: Loading layer [==================================================>]  78.43MB/78.43MB
2c839ee09ee4: Loading layer [==================================================>]   7.68kB/7.68kB
ed3cfb89d2a7: Loading layer [==================================================>]  5.632kB/5.632kB
Loaded image: harbor1.vm.example.lan/dockerio/vesoft/nebula-graph-studio:v3.10.0
[root@hcss-ecs-2ff4 ~]# docker images
REPOSITORY                                                   TAG       IMAGE ID       CREATED        SIZE
harbor1.vm.example.lan/dockerio/vesoft/nebula-graph-studio   v3.10.0   52eb2ad53a4c   9 months ago   85.8MB
[root@hcss-ecs-2ff4 ~]# 
[root@hcss-ecs-2ff4 ~]# docker run -d --name nebula-graph-studio -p 7002:7001 vesoft/nebula-graph-studio
Unable to find image 'vesoft/nebula-graph-studio:latest' locally
latest: Pulling from vesoft/nebula-graph-studio
Digest: sha256:5c97db40af3ef5130a8cec8b7a4a499d5710779890a3ca5a3e7f016989bcf88e
Status: Downloaded newer image for vesoft/nebula-graph-studio:latest
8816874f078627b3e706a491a4eb5a9500ac7473baffa2883ea86d9c682c5300

在这里插入图片描述
在这里插入图片描述


http://www.niftyadmin.cn/n/5864918.html

相关文章

【漫画机器学习系列】102.带泄露线性整流函数(Leaky ReLU)

Leaky ReLU(带泄露线性整流函数)详解 1. 什么是 Leaky ReLU? Leaky ReLU(带泄露线性整流函数)是一种改进的 ReLU(Rectified Linear Unit,线性整流单元)激活函数。与标准 ReLU 不同…

git 常用功能

以下是 Git 的常用功能及其命令&#xff1a; 初始化仓库 git init在当前目录初始化一个新的 Git 仓库。 克隆仓库 git clone <仓库地址>将远程仓库克隆到本地。 查看状态 git status查看工作区和暂存区的状态。 添加文件到暂存区 git add <文件名>将文件添…

HTTP实验(ENSP模拟器实现)

HTTP概述 HTTP&#xff08;HyperText Transfer Protocol&#xff0c;超文本传输协议&#xff09;&#xff0c;设计HTTP最初的目的是为了提供一种发布和接收HTML页面的方法。 HTTP定义了多种请求方法&#xff0c;常用的包括&#xff1a; GET&#xff1a;请求资源。 POST&…

TCP函数

socket() int socket(int domain, int type, int protocol)&#xff1b;创建一个新的套接字 bind() int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen)&#xff1b;将套接字绑定到一个本地地址(IP地址和端口) listen() int listen(int sockfd, int backlo…

蓝桥杯之阶段考核

&#x1f4d6; Day 7&#xff1a;阶段考核 - 蓝桥杯官方模拟赛&#xff08;限时 4 小时&#xff09; &#x1f4d6; 一、如何高效完成模拟赛&#xff1f; 模拟赛是一种接近真实竞赛的训练方式。要高效完成模拟赛&#xff0c;需要掌握以下策略&#xff1a; 1. 赛前准备 ✅ 环…

Cocos Creator Shader入门实战(一):材质和Effect的了解

引擎版本&#xff1a;3.8.5 环境&#xff1a; Windows 简介 在Cocos Creator中&#xff0c;游戏炫彩缤纷的效果是借助着色器(Shader)来实现的。 Cocos主要基于OpenGL ES&#xff0c;而Shader的编写则是在可编程渲染管线中基于修改&#xff1a;顶点着色器(Vertex) 和 片段着色…

Sliding Window Attention(滑动窗口注意力)解析: Pytorch实现并结合全局注意力(Global Attention )

Sliding Window Attention&#xff08;滑动窗口注意力&#xff09;解析 Sliding Window Attention&#xff08;滑动窗口注意力&#xff09; 是 Longformer (来源&#xff1a;https://arxiv.org/pdf/2004.05150)提出的 稀疏注意力机制&#xff0c;旨在解决 标准 Transformer 计算…

游戏设计模式阅读 - 游戏循环

游戏与普通程序最大的不同点在于&#xff1a; 游戏不像其他大多数软件&#xff0c;游戏即使在没有玩家输入时也继续运行。 如果你站在那里看着屏幕&#xff0c;游戏也不会冻结。动画会持续播放。视觉效果继续闪烁。 如果运气不好的话&#xff0c;怪物会继续暴揍你的角色。 那么…