miya 发布的文章

centos8 阿里云镜像
http://mirrors.aliyun.com/centos/8/isos/x86_64/

使用方法:

cd /etc/yum.repos.d/
rm -f CentOS-Base.repo CentOS-AppStream.repo CentOS-PowerTools.repo CentOS-centosplus.repo 
curl -o CentOS-Base.repo https://raw.githubusercontent.com/hackyoMa/docker-centos/8/CentOS-Base.repo
yum makecache

清华大学开源镜像站地址:

https://github.com/hackyoMa/docker-centos/blob/8/CentOS-Base.repo

镜像加速源地址
名称 镜像下载地址 帮助文档地址
清华大学 https://mirrors.tuna.tsinghua.edu.cn/centos/ https://mirrors.tuna.tsinghua.edu.cn/help/centos/
中国科学技术大学 http://mirrors.ustc.edu.cn/centos/ https://mirrors.ustc.edu.cn/help/centos.html
阿里云开发者 https://mirrors.aliyun.com/centos/ https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.3e221b11pe9tZ0
重置缓存。

sudo yum makecache
安装软件,本文示例为htop何sysstat。

sudo yum install htop sysstat

vhd、vmdk、qcow2、raw、vhdx、qcow、vdi或qed格式的镜像的相互转换

参数链接

通过qemu-img工具转换镜像格式_镜像服务 IMS_最佳实践_转换镜像格式_华为云 (huaweicloud.com)
https://support.huaweicloud.com/bestpractice-ims/ims_bp_0030.html

qemu-img for WIndows - Cloudbase Solutions
https://cloudbase.it/qemu-img-windows/

阿里云qcow2镜像转vmdk,导入ESXi - 唐际忠 - 博客园 (cnblogs.com)
https://www.cnblogs.com/tangjizhong/p/12559710.html

最新版本的 ISO 文件存储在 VMware 网站上。在选择命令以安装或升级 VMware Tools 时,VMware 产品确定是否为特定操作系统下载了最新版本的 ISO 文件。如果没有下载最新的版本,或者未下载该操作系统的 VMware Tools ISO 文件,则会提示您下载该文件。

windows.iso 中的 VMware Tools 安装程序可自动检测 Windows 版本。在低于 Windows Vista 的客户机操作系统上,不会继续安装该安装程序。
在 Windows Vista 及更高版本上,不会继续安装 winPreVista.iso 中的 VMware Tools 安装程序。
在版本低于 RHEL5、SLES 11、Ubuntu 10.04 以及 glibc 版本低于 2.5 的其他 Linux 分发版本的 Linux 客户机操作系统上,不会继续安装 linux.iso 中的 VMware Tools 安装程序。
在版本为 10.11 或更高版本的 MAC OS X 客户机操作系统上,不会继续安装 darwinPre15.iso 中的 VMware Tools 安装程序。
在版本低于 10.11 的 MAC OS X 客户机操作系统上,不会继续安装 darwin.iso 中的 VMware Tools 安装程序。

解决办法
给系统安装补丁:kb4474419

下载地址:https://www.catalog.update.microsoft.com/search.aspx?q=kb4474419

补丁安装完成后重新安装vmware tools 即可

国内NTP服务器
国家授时中心NTP服务器
ntp.ntsc.ac.cn

中国NTP快速授时服务
cn.ntp.org.cn

教育网
edu.ntp.org.cn

阿里云公共NTP服务器
time.pool.aliyun.com
time1.aliyun.com
time2.aliyun.com
time3.aliyun.com
time4.aliyun.com
time5.aliyun.com
time6.aliyun.com
time7.aliyun.com

腾讯云公共NTP服务器
time1.cloud.tencent.com
time2.cloud.tencent.com
time3.cloud.tencent.com
time4.cloud.tencent.com
time5.cloud.tencent.com

高校自建NTP服务器
ntp.sjtu.edu.cn
ntp.neu.edu.cn
ntp.bupt.edu.cn
ntp.shu.edu.cn

香港天文台公共NTP服务器
stdtime.gov.hk

国际NTP快速授时服务
pool.ntp.org
0.pool.ntp.org
1.pool.ntp.org
2.pool.ntp.org
3.pool.ntp.org
asia.pool.ntp.org

谷歌公共NTP服务器
time1.google.com
time2.google.com
time3.google.com
time4.google.com

苹果公共NTP服务器
time.apple.com
time1.apple.com
time2.apple.com
time3.apple.com
time4.apple.com
time5.apple.com
time6.apple.com
time7.apple.com

微软Windows NTP服务器
time.windows.com

美国标准技术研究院NTP服务器
time.nist.gov
time-nw.nist.gov
time-a.nist.gov
time-b.nist.gov

前言
由于国内的特殊环境,经常遇到docker镜像打包的时候出现卡死,下载不了的情况,这就需要我们去学会如果加个代理,以便顺畅完成任务。

方式
注意:因为 docker build 会在一个容器内执行,所以须指定 network 为 host, 使之可以连接本机的代理

docker build . -f Dockerfile.frontendapi \
-t registry.cn-shanghai.aliyuncs.com/jinq0123/openmatch-frontendapi:dev \
--network host \
--build-arg HTTP_PROXY=http://127.0.0.1:1080 \
--build-arg HTTPS_PROXY=http://127.0.0.1:1080