Docker配置阿里云镜像加速

访问 https://help.aliyun.com/document_detail/60750.html

点击进入控制台

前往开通

设置密码

确定,进来后,点击镜像加速器

就冒出来配置方法,很简单的,就是拿到加速地址,然后去搞个json文件即可。

vim /etc/docker/daemon.json

# 添加如下内容,具体地址自己申请咯
{
  "registry-mirrors": ["https://****.mirror.aliyuncs.com"]
}

# 重启服务
systemctl daemon-reload
systemctl restart docker

这个时候查看docker信息

[[email protected] admin]# docker info
Containers: 5
 Running: 0
 Paused: 0
 Stopped: 5
Images: 5
Server Version: 1.13.1
Storage Driver: overlay2
 Backing Filesystem: xfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: docker-runc runc
Default Runtime: docker-runc
Init Binary: /usr/libexec/docker/docker-init-current
containerd version:  (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1)
runc version: 5eda6f6fd0c2884c2c8e78a6e7119e8d0ecedb77 (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f)
init version: fec3683b971d9c3ef73f284f176672c44b448662 (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
 seccomp
  WARNING: You‘re not using the default seccomp profile
  Profile: /etc/docker/seccomp.json
 selinux
Kernel Version: 3.10.0-862.9.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
Number of Docker Hooks: 3
CPUs: 1
Total Memory: 974.6 MiB
Name: localhost.localdomain
ID: RKLD:HVRZ:AAX6:O36J:264Q:QAF6:EHO6:2VCI:AA3M:445E:266Y:KCKU
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Registry Mirrors:
 https://****.mirror.aliyuncs.com
Live Restore Enabled: false
Registries: docker.io (secure)

原文地址:https://www.cnblogs.com/LUA123/p/11401962.html

时间: 2024-08-30 13:19:55

Docker配置阿里云镜像加速的相关文章

Docker - 配置阿里云镜像仓库

Docker - 配置阿里云镜像仓库 由于网络原因,我们在pull Image 的时候,从Docker Hub上下载会很慢,所以可以使用国内的镜像(mirror)来加速,方便大家使用. 配置阿里云加速器 1. 登录阿里开发者平台 https://promotion.aliyun.com/ntms/act/kubernetes.html#industry 2. 点击“镜像搜索” 自动跳转到控制台的镜像搜索 3. 注册/登录后 进入Docker 镜像仓库 (https://cr.console.al

kali安装docker以及配置阿里云镜像加速

1.需求 最近需要用到docker比较多,遂安装使用下,第一次用docker搭建测试环境,不得不说,docker真香.期间遇到了比较多奇奇怪怪的问题,网上的教程也比较多比较乱,遂记录一下. 2.安装docker apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D echo 'deb https://apt.dockerpr

docker在mac下安装及配置阿里云镜像加速

安装 brew cask install docker 配置 关于阿里云加速地址,下面会有详细说明 阿里云官方镜像加速 官方文档:https://help.aliyun.com/document_detail/60750.html?spm=a2c4g.11186623.6.549.53594685cbQcAy 查看是否配置成功 docker info done! 参考文档: MacOS Docker 安装 阿里云官方镜像加速 原文地址:https://www.cnblogs.com/wangha

docker使用阿里云镜像加速

由于很多镜像是国外网站的,我们下载的话会比较耗时,但是国内有些企业做了镜像拷贝工作,这样,我们就可以直接从他们的国内服务器上下载相应的文件就好了,比如阿里云的服务 登录阿里云,主界面搜“容器镜像服务”,如图,后面按照图片操作即可 原文地址:https://www.cnblogs.com/luoocean/p/11608111.html

Maven(五)之Maven配置阿里云镜像飞快下jar包

用过Maven的人都知道Maven对于依赖的管理让我们程序员从此远离了自己去在项目中把需要的jar包导入到项目中,但是因为中央仓库是在国外的,所以在我们从中央仓库下载依赖的时候, 我们发现下载速度真的是无语了,所以我们用什么方法来解决这个问题呢?答案是:配置阿里云国内镜像 一.什么是镜像 maven默认会从中央仓库下载jar包,这个仓库在国外,而且全世界的人都会从这里下载,所以下载速度肯定是非常慢的. 镜像就相当于是中央仓库的一个副本,内容和中央仓库完全一样,目前有不少国内镜像,其中阿里云算是比

CentOS 7 yum配置阿里云镜像(转)

1.下载源配置 凡是下载国外的软件,比如用npm,pip,yum有时下载速度感人,最好配置国内镜像地址 yum配置阿里云镜像参考:https://blog.csdn.net/hnmpf/article/details/81240177 原文地址:https://www.cnblogs.com/jixiaohua/p/11563409.html

Ubuntu-16.04下Docker通过阿里云镜像安装(apt-get)

由于通过官方路径安装docker时总是连接不上,所以从网上找了半天,通过阿里云镜像安装docker,我的Linux是ubuntu-16.04 一.配置源里的阿里云镜像仓库 sudo vim /etc/apt/sources.list 添加以下仓库 deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-

MacOS配置Docker的阿里云镜像加速器

1 访问这个地址,使用自己的阿里云账号登录,查看菜单栏左下角,发现有一个镜像加速器:https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors 找到自己的镜像加速器的地址链接 2 打开Mac中Docker的配置选项,并添加 然后点击apply & restart 3 最后用docker info命令检查配置是否生效 原文地址:https://www.cnblogs.com/QuestionsZhang/p/12443356.html

为Docker配置阿里加速器,系统为Debian8

先停止docker服务 service docker stop 设置阿里加速器 dockerd --registry-mirror=https://063eurcd.mirror.aliyuncs.com 看到“Daemon has completed initialization”执行结果就表示配置完成. 重启docker服务 service docker restart 然后再去打镜像,速度无比快... End