armbian安装docker

最近又搞了台瑞莎Radxa 3E ,从零开始部署unbuntu环境,发现是真曲折啊,虽然有点前车之鉴了

在Armbian上安装Docker,可以按照以下步骤操作:

1、更新软件包列表:

sudo apt-get update
 
2、安装必要的软件包以允许apt通过HTTPS使用仓库:

sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
 
3、添加Docker的官方GPG密钥:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
 
4、添加Docker的稳定仓库:

sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
 
5、再次更新软件包列表(用于读取新添加的Docker仓库):

sudo apt-get update
 
6、安装Docker CE(社区版):

sudo apt-get install docker-ce
 
7、为了确保Docker在启动时自动启动,请确保它已被启用:

sudo systemctl enable docker
 
8、测试Docker是否正确安装并运行:

sudo docker run hello-world
 
这些步骤适用于基于Debian的Armbian发行版,比如Armbian for Rockchip (RK3399)。如果您使用的是其他的Armbian版本或者硬件架构,请根据实际情况调整第4步中的仓库地址。

9、Docker换源

nano /etc/docker/daemon.json

{
"registry-mirrors": [
"https://kfwkfulq.mirror.aliyuncs.com",
"https://2lqq34jg.mirror.aliyuncs.com",
"https://pee6w651.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com"
],
"dns": ["8.8.8.8","8.8.4.4"]
}
1
2
3
4
5
6
7
8
9
10
11
12
ctrl+x退出编辑,按y回车保存,执行

systemctl daemon-reload
systemctl restart docker
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值