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
相关推荐
小政同学12 小时前
【NFS故障】共享的文件无法执行
linux·运维·服务器
禅口魔心12 小时前
边缘网关开发计划(一):在 Rock 5T 上部署 Docker
物联网·docker·rk3588·边缘网关
ch3nyuyu13 小时前
Ubuntu(乌班图)基础指令
linux·运维·网络
huihuihuanhuan.xin13 小时前
记一次 Docker PostgreSQL 连接认证失败的排查与解决
docker
挽安学长13 小时前
保姆级教程,通过GACCode使用Claude Code Desktop!
运维·服务器
firstacui14 小时前
MGRE实验
运维·服务器·网络
白菜欣15 小时前
Linux —《开发三件套:gcc/g++、gdb、make/Makefile 全解析》
linux·运维
何中应15 小时前
Grafana如何给列表设置别名
运维·grafana·监控
MXsoft61815 小时前
运维的尽头,是把“救火”变成“算命”
运维
大卡片16 小时前
IO模型与并发服务器设计
运维·服务器·网络