当前位置:首页 > 环境配置 > Docker > 正文内容

Debian12 安装docker

大地主刘发财1周前 (05-16)Docker230
安装必备
apt install ca-certificates curl software-properties-common gnupg2
apt install docker.io
增加源
vi /etc/apt/sources.list
添加阿里Docker源:
deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/debian bookworm stable
阿里源:
deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
添加key
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/debian/gpg | apt-key add -
安装Docker
apt install docker-ce
启动服务
service docker start


分享给朋友:
返回列表

没有更早的文章了...

下一篇:Docker常用命令

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。