docker pull 指定 os arch

Posted by 夏泽民

docker pull golang:1.17.0-alpine3.13 arch=darwin/arm64

https://registry.hub.docker.com/_/golang?tab=tags&page=1&ordering=last_updated&name=1.17

% docker pull golang:1.17.0-alpine3.13 Status: Downloaded newer image for golang:1.17.0-alpine3.13 docker.io/library/golang:1.17.0-alpine3.13



linuxkit

Posted by 夏泽民

https://github.com/linuxkit/linuxkit



http_proxy

Posted by 夏泽民

对于curl,wget等命令,会受http_proxy和https_proxy的环境变量的影响 vi /etc/profile #设置http代理 http_proxy=http://172.16.2.1:8000 #设置https代理 https_proxy=http://172.16.2.1:8000 #设置不通过代理服务器链接 no_proxy=.xxx.com,10.,www.baidu.com export all_proxy=http://proxy.example.com:8080 https://blog.csdn.net/weixin_42488171/article/details/108742570 https://keqingrong.cn/blog/2021-02-19-proxy-and-pac/



debian

Posted by 夏泽民

docker容器内安装太慢,实在受不了这速度了。 解决方案 将默认的debian源替换为阿里源。 cat命令(因为默认不带vim)查看源配置文件: cat /etc/apt/sources.list 默认内容为: deb http://deb.debian.org/debian jessie main deb http://deb.debian.org/debian jessie-updates main deb http://security.debian.org jessie/updates main 只要将 deb.debian.org 替换为 mirrors.aliyun.com 即可 https://blog.csdn.net/enthan809882/article/details/104441118



apline

Posted by 夏泽民

首先 alpine 非常的小,安装上了bash 之后也才 5mb https://studygolang.com/articles/9215



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required