基于 icyleafcn/alpine:latest 镜像配置的 mkcert 一个由 Go 语言编写的自签名证书生成工具, 同时还内置了 openssl,可让用户自行选择使用哪种方式。
$ docker run --rm -v $(pwd):/root/.local/share/mkcert icyleafcn/mkcert \
mkcert icyleaf.com
$ docker run --rm -v $(pwd):/root/.local/share/mkcert icyleafcn/mkcert \
mkcert -install && mkcert localhost
docker pull icyleafcn/mkcert:latest