用 Python 脚本拉取 Docker 镜像
简介这个项目使用 Python 的 Request 库,借助 API 直接从仓库中拉取镜像,并保存为 TAR 文件。此工具不需要借助 docker 客户端。保存下来的 Tar 文件可以直接使用 docker load -i 命令进行载入。由于去掉了对 Docker/Podman/xxxx 等的依赖,
容器镜像相关
用 Trivy 扫描新操作系统的漏洞安装apt-get installyum installbrew install扫描当镜像位于本地,大小90MB左右时候的扫描:trivy http://registry.cn-hangzhou.aliyuncs.com/choerodon-tools/javab
Go程序Dockerfile模板
模板文件# build时设置版本 --build-arg GO_VERSION=1.13,默认为go1.15ARG GO_VERSION=1.15FROM golang:${GO_VERSION} AS builderENV GOPROXY="https://goproxy.cn"