Skip to content

Instantly share code, notes, and snippets.

View wayjam's full-sized avatar
💭
I may be slow to respond.

WayJam So wayjam

💭
I may be slow to respond.
View GitHub Profile
@wayjam
wayjam / docker-registry-mirrors.md
Created May 13, 2023 16:04 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 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
@wayjam
wayjam / .conkyrc
Last active August 29, 2015 14:20
My Conky Config
# 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.