国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
| <html> | |
| <body> | |
| <!-- Add jQuery library --> | |
| <script type="text/javascript" src="http://cdn.staticfile.org/jquery/2.0.3/jquery.min.js"></script> | |
| <!-- Add mousewheel plugin (this is optional) --> | |
| <!-- | |
| <script type="text/javascript" src="http://cdn.staticfile.org/jquery-mousewheel/3.1.3/jquery.mousewheel.min.js"></script> | |
| <!-- Add fancyBox --> | |
| <link rel="stylesheet" href="http://cdn.staticfile.org/fancybox/2.1.4/jquery.fancybox.min.css" type="text/css" media="screen" /> | |
| <script type="text/javascript" src="http://cdn.staticfile.org/fancybox/2.1.4/jquery.fancybox.min.js"></script> |
| <?php | |
| define("DOMAIN_NAME", 'mydomain.com'); | |
| $dnspod_header = "主机|类型|线路|记录值|MX优先级|TTL|备注\n"; | |
| $dnspod_content = ""; | |
| $xinnet_html = file_get_contents("o.txt"); | |
| preg_match('/<!-- ADDRESS RECORDS -->([\s\S]+)tbccname/',$xinnet_html,$ret); |
| # -*- coding: UTF-8 -*- | |
| import XenAPI | |
| import os | |
| class XenController(): | |
| def __init__(self, URL, UserName, Password): | |
| self.session = XenAPI.Session(URL) | |
| self.session.xenapi.login_with_password(UserName, Password) |
| <?php | |
| ini_set('display_errors',true); | |
| error_reporting(E_ALL ^ E_NOTICE); | |
| $obj = new HtmlImporter(); | |
| $obj->run(); | |
| class HtmlImporter { |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import urllib | |
| import urllib2 | |
| import re | |
| import socket | |
| import os | |
| import time | |
| import random | |
| import requests |
| docker run \ | |
| --name {{printf "%q" .Name}} \ | |
| {{- with .HostConfig}} | |
| {{- if .Privileged}} | |
| --privileged \ | |
| {{- end}} | |
| {{- if .AutoRemove}} | |
| --rm \ | |
| {{- end}} | |
| {{- if .Runtime}} |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+