ubuntu 18.04 server 64bit with arm docker安装
时间: 2024-12-22 19:23:04 浏览: 5
ubuntu-18.04.6-server-arm64.iso
5星 · 资源好评率100%
Ubuntu 18.04 Server版64位ARM架构上安装Docker,需要确保你的系统支持ARM并且已经更新到最新版本。以下是简要步骤:
1. **更新系统**:
首先,通过终端登录到服务器,并运行命令更新系统软件包:
```
sudo apt update
sudo apt upgrade
```
2. **安装依赖库**:
安装一些必要的库以支持Docker安装:
```
sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release
```
3. **添加Docker GPG密钥**:
```bash
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
```
4. **添加Docker仓库**:
```
echo "deb [arch=arm64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
```
5. **更新apt源并安装Docker**:
```
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
```
6. **启动和启用Docker服务**:
```
sudo systemctl start docker
sudo systemctl enable docker
```
7. **检查Docker是否安装成功**:
运行 `docker run hello-world` 来验证Docker是否可以正常工作。
阅读全文