国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Ubuntu 16.04+、Debian 8+、CentOS 7+
创建或修改 /etc/docker/daemon.json
:
<rules> | |
<service block="true" log="false"> | |
<component-filter name="tv.danmaku.bili/tv.danmaku.bili.update.UpdateService" /> | |
<component-filter name="tv.danmaku.bili/com.xiaomi.push.service.XMPushService" /> | |
<component-filter name="tv.danmaku.bili/com.xiaomi.mipush.sdk.PushMessageHandler" /> | |
<component-filter name="tv.danmaku.bili/com.xiaomi.mipush.sdk.MessageHandleService" /> | |
<component-filter name="tv.danmaku.bili/com.evernote.android.job.v14.PlatformAlarmService" /> | |
<component-filter name="com.tencent.mobileqq/com.tencent.mobileqq.qipc.QIPCServiceEx" /> | |
<component-filter name="com.tencent.mobileqq/com.tencent.pluginloader.proxy.DownloadProxyService" /> | |
<component-filter name="com.tencent.mobileqq/com.tencent.proxyinner.plugin.loader.NowQTServiceProxy" /> |
# -*- coding: utf-8 -*- | |
from flask import Flask | |
from flask import Response | |
from flask import stream_with_context | |
import requests | |
app = Flask(__name__) |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |