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
相关推荐
赛博云推-Twitter热门霸屏工具14 小时前
Twitter运营完整流程:从0到引流获客全流程拆解(2026)
运维·安全·自动化·媒体·twitter
CHHC188014 小时前
NetCore树莓派桌面应用程序
linux·运维·服务器
帮我吧智能服务平台15 小时前
装备制造智能制造升级:远程运维与智能服务如何保障产线OEE
运维·服务器·制造
w61001046615 小时前
cka-2026-cri-dockerd
运维·k8s·cka
卤炖阑尾炎16 小时前
PostgreSQL 日常运维全指南:从基础操作到备份恢复
运维·数据库·postgresql
handsomestWei16 小时前
Docker引擎API接入配置
运维·http·docker·容器·api
Tingjct16 小时前
Linux常用指令
linux·运维·服务器
daad77717 小时前
wifi_note
运维·服务器·数据库
IT界的老黄牛17 小时前
Linux 压缩命令实战:tar、gzip、bzip2、xz、zstd 怎么选?一篇讲清楚
linux·运维·服务器
12345,catch a tiger17 小时前
虚拟机ubuntu安装Vmware Tools
linux·运维·ubuntu