debian12安装docker

由于众所周知的原因,国内的网络已经没办法直连 docker hub 及 docker 相关的服务,导致国内的机器没有办法安装 docker 和从 docker 镜像仓拉取镜像。网上搜了一圈发现了可以有效安装 docker 的方法,因此记录一下。

安装

安装镜像源

|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1 2 3 4 5 6 7 8 9 10 11 12 | # https://developer.aliyun.com/article/110806 sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/debian/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc echo \ "deb [arch=(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://mirrors.aliyun.com/docker-ce/linux/debian \ (. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |

安装docker-ce

|-----|------------------------------------------------------------------------------------------------------------------------------|
| 1 2 | sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y |

相关推荐
wanhengidc17 小时前
云手机在办公领域中自动化的应用
运维·智能手机·自动化
en-route17 小时前
Kubernetes Ingress:使用 Apache APISIX 进行外部流量路由
容器·kubernetes
qsqya17 小时前
ceph/daemon安装部署
ceph·云原生·eureka
知星小度S19 小时前
系统核心解析:深入操作系统内部机制——进程管理与控制指南(一)【进程/PCB】
linux·运维·服务器·进程
码农101号1 天前
运维安全05 - iptables规则保存与恢复
运维·网络·安全
bug攻城狮1 天前
解决Ubuntu中apt-get -y安装时弹出交互提示的问题
linux·运维·ubuntu
夜阑珊夭夭1 天前
linux自定义网卡名字
linux·运维
佛天华1 天前
centos 时间校准
linux·运维·centos
DogDaoDao1 天前
Docker全解析:从核心概念到2025年AI集成新特性
人工智能·docker·eureka·程序员