国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| # -*- coding: utf-8 -*- | |
| import json | |
| import sys | |
| from ConfigParser import (ConfigParser, MissingSectionHeaderError, | |
| ParsingError, DEFAULTSECT) | |
| class StrictConfigParser(ConfigParser): | |
| def _read(self, fp, fpname): |
| [DEFAULT] | |
| ; Operation mode | |
| ; This is a global value for all sections | |
| mode = master | |
| [server] | |
| ; Connection lifetime | |
| timeout = 3600 |