此处有加速 apt-get github docker pull
Posted xiaoxuebiye
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了此处有加速 apt-get github docker pull相关的知识,希望对你有一定的参考价值。
ubuntu get-apt 加速
创建 aptupdate.sh 脚本,内容为: #!/bin/bash mv /etc/apt/sources.list /etc/apt/sources.list.bak Codename=$( (lsb_release -a)|awk ‘print $2‘|tail -n 1 ) echo "\ #deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial universe deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties deb http://archive.canonical.com/ubuntu xenial partner deb-src http://archive.canonical.com/ubuntu xenial partner deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse ">/etc/apt/sources.list apt-get update
github pull 加速
利用 https://www.ipaddress.com/ 查出 github.com , assets-cdn.github.com github.global.ssl.fastly.net github.githubassets.com 的 ip地址 修改 linux /etc/hosts windws: c:/xxx/xxx/xxx/hosts 2019.8.21 修改如下 192.30.253.112 github.com #192.30.253.113 185.199.108.153 assets-cdn.github.com ##109 110 151.101.185.194 github.global.ssl.fastly.net 185.199.108.154 github.githubassets.com
docker pull
修改 /etc/docker/daemon.json 内容为 "registry-mirrors": ["https://registry.docker-cn.com"] 或者网易 http://hub-mirror.c.163.com 或阿里 https://xxxxxx.mirror.aliyuncs.com ( https://6uaxjis.mirror.aliyuncs.com 错误的,勿用 ) xxxx 不同阿里云用户,不同 sudo systemctl daemon-reload sudo systemctl restart docker
helm repo
#个人的,托管在阿里云的 18年11月份后不再更新 aliyun https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts #阿里云apphub apphub https://apphub.aliyuncs.com/
这里是一些无用的信息, 因为发帖需要满足 150 个字。
我这里留些什么好呢???? 给自己吹吹牛吧
会go c c++ python node.js delphi 略懂java .net
会oracle mongo redis 略懂 mysql sqlserver
会docker 会 k8s exsi
还会 word excel ppt project viso
厉害,厉害 !!!
以上是关于此处有加速 apt-get github docker pull的主要内容,如果未能解决你的问题,请参考以下文章