国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Ubuntu 16.04+、Debian 8+、CentOS 7+
创建或修改 /etc/docker/daemon.json
:
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
labels: | |
app: elasticsearch | |
role: data | |
name: elasticsearch-data | |
spec: | |
replicas: 2 | |
serviceName: elasticsearch-data |
# Use Xft? | |
use_xft yes | |
xftfont Open Sans Light:size=10 | |
xftalpha 0.8 | |
text_buffer_size 3072 | |
# Update interval in seconds | |
update_interval 1 | |
# This is the number of times Conky will update before quitting. |