kubernetes calico istio janus ceph document website docker image
kubernetes website mirror
calico website mirror
coturn website mirror
developer.chrome.com website mirror
ceph website mirror
coturn freeswitch janus nginx-quic image
coturn
freeswitch
janus
nginx-quic image
docker use proxy download image ; 使用代理下载容器镜像
docker.io (docker hub公共镜像库)
gcr.io (Google container registry)
k8s.gcr.io (等同于gcr.io/google-containers)
https://console.cloud.google.com/gcr/images/google-containers/GLOBAL
quay.io (Red Hat运营的镜像库)
ghcr.io (github 运营的镜像库)
docker proxy configure ; docker 代理 配置
proxy_url=http://your-porxy-server-ip:8118
line_number=$( grep -n ' \[Service\]' /lib/systemd/system/docker.service | cut -d ' :' -f 1 ) && echo $line_number
sed -i " ${line_number} a\Environment=https_proxy=${proxy_url} " /lib/systemd/system/docker.service
sed -i " ${line_number} a\Environment=http_proxy=${proxy_url} " /lib/systemd/system/docker.service
sed -i " ${line_number} a\Environment=\" NO_PROXY=localhost,127.0.0.0/8,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,.aliyuncs.com\" " /lib/systemd/system/docker.service
systemctl daemon-reload
systemctl restart docker
cat /lib/systemd/system/docker.service
docker info
cat << EOF | tee proxy.sh
# your proxy server ip
ip=proxy.example.com
# your proxy server ssh key
keyfile=/key.pem
{
ssh -o StrictHostKeyChecking=no \
-o ExitOnForwardFailure=yes \
-o TCPKeepAlive=yes \
-o ServerAliveInterval=15 \
-o ServerAliveCountMax=3 \
-i $keyfile \
-v -CTg \
-D 0.0.0.0:8118 \
root@$ip
} || {
echo $?
}
EOF
# note you can use [autossh ] keep ssh live ;你能使用 autossh 保持ssh连接一直存活
apt install -y autossh
# 1. 只显示目录
ls -F | grep " /$"
ls -al | grep " ^d"
# 2. 只显示文件
ls -al | grep " ^-"
ls -al | grep " ^-" | awk ' {print $9}' > soft-list.txt
# ls | while read line; do echo $line ;done
# i=0 ; while true ; do sleep 10 && clear && echo $((i++)) ; done
# find ./ -nouser |xargs rm –rf