docker shell安装

1. Update APT:

复制代码
sudo apt-get update

2. Install these packages first:

复制代码
sudo apt-get install \
     ca-certificates \
     curl \
     gnupg \
     lsb-release

3. Add GPG keys:

复制代码
 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

4. Then add Docker repository:

复制代码
echo \
  "deb [arch=$(dpkg --print-architecture) 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. Update again:

复制代码
sudo apt-get update

6. Install docker-ce, cli and containerd.io:

复制代码
sudo apt-get install docker-ce docker-ce-cli containerd.io

must work - be sure to execute all commands as root or with sudo.

You can also use their script to automate everything:

复制代码
 curl -fsSL https://get.docker.com -o get-docker.sh
 sudo ./get-docker.sh
相关推荐
tuokuac1 天前
docker中nginx配置报错解决
linux·运维·服务器
Joren的学习记录1 天前
【Linux运维大神系列】docker详解(四)
linux·运维·docker
Elastic 中国社区官方博客1 天前
让我们把这个 expense 工具从 n8n 迁移到 Elastic One Workflow
大数据·运维·elasticsearch·搜索引擎·ai·信息可视化·全文检索
( •̀∀•́ )9201 天前
GitHub Actions SSH 部署密钥
运维·ssh·github
louqle1 天前
docker基本知识及常用命令汇总
运维·docker·容器
学烹饪的小胡桃1 天前
【运维学习】实时性能监控工具 WGCLOUD v3.6.2 更新介绍
linux·运维·服务器·学习·工单系统
叫致寒吧1 天前
Docker
运维·docker·容器
杨浦老苏1 天前
现代流媒体聚合播放器冬瓜TV MAX
docker·群晖·多媒体
白露与泡影1 天前
使用systemd,把服务装进 Linux 心脏里~
linux·运维·python
l1t1 天前
用docker安装oracle 19c
运维·数据库·docker·oracle·容器