Ubuntu 配置 docker 镜像

手动添加 Docker 源

假设使用的是 Ubuntu 22.04(代号 jammy

bash 复制代码
sudo vim /etc/apt/sources.list.d/docker.list

添加以下内容

bash 复制代码
deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.aliyun.com/docker-ce/linux/ubuntu jammy stable

添加 Docker 的 GPG 密钥

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

可以使用 lsb_release -cs 查看系统发行版本

相关推荐
RisunJan1 天前
Linux命令-help命令(查看 Shell 内置命令帮助信息)
linux·运维·服务器
RemainderTime1 天前
(十)Spring Cloud Alibaba 2023.x:生产级 CI/CD 全链路实战(从 Dockerfile 到 Jenkins)
运维·spring cloud·ci/cd·docker·jenkins
大猫和小黄1 天前
Windows环境下在VMware中安装和配置CentOS 7
linux·windows·centos
梁正雄1 天前
linux服务-Kibana8原理与安装
linux·运维·服务器
Radan小哥1 天前
Docker学习笔记—day013
笔记·学习·docker
奋斗的好青年1 天前
Ubuntu+Windows双系统修复引导+更改启动顺序
linux·windows·ubuntu
yiSty1 天前
Windows 10/11下安装WSL Ubuntu
linux·windows·ubuntu
编程研究坊1 天前
LabelStudio linux 系统下部署教程
linux·运维·服务器
取加若则_1 天前
gcc/g++
linux·gcc/g++
ybdesire1 天前
在CentOS 7安装配置CodeQL与运行QL扫描
linux·运维·centos