13.2. nginx
13.2.1. 描述
rhscl/nginx-120-rhel7 镜像提供 nginx 1.20 服务器和反向代理服务器;镜像可用作基于 nginx 1.20 Web 服务器的基础镜像,即 rhscl/nginx-118-rhel7 镜像提供 nginx 1.18。
13.2.2. 权限
要拉取 rhscl/nginx-120-rhel7 镜像,以 root 用户身份运行以下命令:
# podman pull registry.redhat.io/rhscl/nginx-120-rhel7
要拉取 rhscl/nginx-118-rhel7 镜像,以 root 用户身份运行以下命令:
# podman pull registry.redhat.io/rhscl/nginx-118-rhel7
13.2.3. 配置
nginx 容器镜像支持以下配置变量,可将 -e
选项用于 podman run
命令进行设置:
变量名称 | 描述 |
---|---|
|
默认情况下,nginx 会登录到标准输出,因此可使用 |
使用 S2I 工具支持 rhscl/nginx-120-rhel7 和 rhscl/nginx-118-rhel7 镜像。