当前位置:网站首页>银河麒麟v10-arm版离线安装Portainer
银河麒麟v10-arm版离线安装Portainer
2022-07-17 09:27:00 【Fiona_q】
Portainer是一个可视化的容器镜像的图形管理工具,利用Portainer可以轻松构建,管理和维护Docker环境。 而且完全免费,基于容器化的安装方式,方便高效部署。
目录
1. 安装portainer镜像包
portainer比较新的版本镜像包是portainer/portainer-ce,之前的版本是portainer/portainer,新旧版本之间还是有些区别的,旧版本在离线情况下还带有应用模板,新版本在离线状态下已经没有自带的应用模板了,并不是很方便,但我还是安装了比较新的版本的portainer。
#现在联网的机子上拉取镜像包
docker pull portainer/portainer-ce:linux-arm64-2.11.1-alpine
#离线加载镜像包,在镜像包所在的文件夹目录下执行
docker load < portainer/portainer-ce:linux-arm64-2.11.1-alpine2. 运行portainer
docker run -d --name portainerUI -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer-ce其中,--name是可以调换的,-p是做端口映射的,前面的9000可以调整为你自己的端口,也是之后你使用ip+port访问的prot,后面的9000是portainer的端口不能修改,-v是挂载操作,最后的镜像名称,可以省略版本号,也可以带着版本号。
3. 访问portainer
通过ip:port的方式访问portainer,首先创建默认用户admin的密码,输入并确认密码后成功访问。
4. 配置多个节点
4.1 编辑docker.service
vim /usr/lib/systemd/system/docker.service
#找到 ExecStart字段修改如下
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock4.2 重新启动docker服务
systemctl daemon-reload
systemctl restart docker4.3 配置远程docker
在左侧Environmets进行Add environment操作,环境类型选择docker,name自己命名,environment URL按照提示填写:

最后,设置好集群节点后,在home页面可以看到如下显示,即配置完整。

边栏推荐
猜你喜欢

简易的第三方组件日志脱敏

Etcd database source code analysis - initialize etcdserver structure

Two structures ifconf and ifreq

2022年上海市安全员C证国家题库及答案

Zero basic C language
![[handwritten numeral recognition] handwritten numeral recognition based on lenet network with matlab code](/img/e7/68fa042cae0bd10a06f08bba738c12.png)
[handwritten numeral recognition] handwritten numeral recognition based on lenet network with matlab code

shell-笔记

Project code training tutorial
![[Hongke] lidar safety system: making the world safer](/img/35/23986a66c63d51862c7562834d6a89.png)
[Hongke] lidar safety system: making the world safer

2022年夏令营难忘的一天
随机推荐
Solve interface cross domain problems and node operation MySQL
QT串口通信
OGG中token的使用
Static routing!! Static routing!! Static routing!!
Scope and lifecycle of beans
It's also very difficult. I'm not only tired of writing by myself
【论文笔记】基于深度学习的视觉检测及抓取方法
Bean的作用域和生命周期
【论文笔记】融合多传感器数据的抓取机械臂末端定位研究
Expanding hard disk in VMWare
[handwritten numeral recognition] handwritten numeral recognition based on lenet network with matlab code
MySQL索引(二)
sql server建表时设置ID字段自增 (navicat 演示)
Nacos new configuration management
How is MySQL data stored on disk?
解决接口跨域问题和node操作MySQL
树状数组
单机项目进行微服务拆分
freeswitch的话单模块
用户/账户/账号的理解