---
title: "docker 加速配置"
author: "chzhxu"
date: "2018-06-27T13:21:17Z"
tags: []
categories: ["互联网"]
slug: "docker"
draft: false
lastmod: "2018-06-27T13:33:45Z"
id: 2425708
url: "https://gangling.iteye.com/blog/2425708"
---

修改配制文件 : vim usr/lib/systemd/system/docker.service

 

添加红色部分到 "ExecStart" ExecStart=/usr/bin/dockerd --registry-mirror=https://registry.docker-cn.com

 

重新加载配制：$ systemctl daemon-reload

 

重新启动服务：$ service docker restart