docker拉取镜像-配置阿里云镜像加速

1、配置阿里云镜像(用于拉取镜像加速)


bash 复制代码
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://xxxxxxxx.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

2、拉取镜像

bash 复制代码
docker pull python:3.8
docker pull python:3.10
docker images
docker run -it --name streamlit python:310 /bin/bash


相关推荐
眷蓝天21 小时前
K8S 单 Master 集群在 openEuler 24.03 上的部署指南
容器·kubernetes·php
雨奔21 小时前
Kubernetes 核心对比:ReplicationController 与 Deployment 该如何选择?
云原生·容器·kubernetes
东北甜妹21 小时前
K8s 集群
云原生·容器·kubernetes
Cyber4K1 天前
【Kubernetes专项】温故而知新,重温技术原理(1)
云原生·容器·架构·kubernetes
新知图书1 天前
通过阿里云百炼平台调用DeepSeek大模型
人工智能·阿里云·云计算·langchian
深念Y1 天前
Docker Windows C盘爆满迁移到D盘:完整试错与成功路径
windows·docker·wsl·镜像·清理·迁移·c盘
拄杖忙学轻声码1 天前
Docker Swarm 集群部署应用容器常见问题解决
docker·容器
ofoxcoding1 天前
DeepSeek V4 本地部署 + 生产级监控:从 Dockerfile 到 K8s 完整运维方案(2026)
运维·ai·容器·kubernetes
小夏子_riotous1 天前
Docker学习路径——7、Docker搭建MySQL 主从复制
linux·运维·mysql·docker·容器·centos·云计算
liyinchi19881 天前
Windows Server 部署Docker Engine
运维·docker·容器