自用的nginx容器
https://github.com/openresty/headers-more-nginx-module.git
https://github.com/torden/ngx_hidden_signature_patch
https://github.com/SpiderLabs/ModSecurity-nginx
UBI容器取得
podman login registry.access.redhat.com
podman pull registry.access.redhat.com/ubi8/ubi
podman pull registry.access.redhat.com/ubi8/ubi-minimal
设置代理
export http_proxy=http://192.168.31.123:7890
export https_proxy=http://192.168.31.123:7890
取消代理
unset https_proxy
unset http_proxy
删除旧镜像
podman rmi $(podman images -qa custom-nginx) -f
build镜像
buildah bud -t custom-nginx:1.22.1 .
buildah bud -t ubi-nginx:1.22.1 .
测试镜像
podman run --network=host --rm -it ubi-minimal sh
podman run --network=host --rm -it localhost/custom-nginx:1.22.1 /bin/bash
podman run --network=host --rm localhost/custom-nginx:1.22.1
保存/加载镜像
podman save -o custom-nginx.1.22.1.tar localhost/custom-nginx:1.22.1
podman load -i custom-nginx.1.22.1.tar