
; prior to version 1.27.1.2-3, https://github.com/zherczeg/sljit/issues/89 is disabled for s390x.
Releases are tagged with <openresty-version>-<image-version>-<flavor>. The latest image-version will also be tagged <openresty-version>-<flavor>. The HEAD of the master branch is also labeled plainly as <flavor>. The builds are managed by Travis-CI and Appveyor (for Windows images).
There are architecture-specific tags as well, <openresty-version>-<image-version>-<flavor>-<arch>, but one would generally pull from the multi-architecture name above.
It is highly recommended that you use the upstream-based images for best support. For best stability, pin your images to the full tag, for example 1.21.4.1-0-bionic.
-fat images are ones that have LuaRocks and OPM installed in them. -buildpack images are based on https://hub.docker.com/_/buildpack-deps#what-is-buildpack-deps; they might be useful when more build scaffolding is required in your application.
The Maintainers of this OpenResty Docker Tooling operate under the following policies:
We track OpenResty releases for build-from-upstream and will continue to add new upstream releases:
We track build-from-source images as follows:
stableWe try to include popular architectures (x86_64, aarch64, s390x)
RC versions of upstream releases will be made available on tags
If an image fails CI/CD too much, we will remove it.
We operate in English and PRs must be English as well, unless for localization purposes.
We will accept issues in any language. We will provide our translations to English for clarity.
All are welcome to particpate, but must show mutual respect to the community.
The Docker tooling installs its own https://github.com/openresty/docker-openresty/blob/master/nginx.conf. If you want to directly override it, you can replace it in your own Dockerfile or via volume bind-mounting.
For the Linux images, that nginx.conf has the directive include /etc/nginx/conf.d/*.conf; so all nginx configurations in that directory will be included. The https://github.com/openresty/docker-openresty/blob/master/nginx.vh.default.conf has the original OpenResty configuration and is copied to /etc/nginx/conf.d/default.conf.
Since 1.25.3.2-2, the nginx.conf also contains include /etc/nginx/conf.d/*.main; at the main stanza level (rather than the http level of *.conf). stream and other main level directives can be included there; see https://github.com/openresty/docker-openresty/issues/257 for an example.
You can override that default.conf directly or volume bind-mount the /etc/nginx/conf.d directory to your own set of configurations:
docker run -v /my/custom/conf.d:/etc/nginx/conf.d openresty/openresty:alpine
If you are running on an selinux host (e.g. CentOS), you may need to add :Z to your volume bind-mount argument:
docker run -v /my/custom/conf.d:/etc/nginx/conf.d:Z openresty/openresty:alpine
When using the windows image you can change the main configuration directly:
docker run -v C:/my/custom/nginx.conf:C:/openresty/conf/nginx.conf openresty/openresty:windows
The image builds are labeled with various information, such as the versions of OpenResty and its dependent libraries. Here's an example of printing the labels using jq:
$ docker pull openresty/openresty:1.17.8.1-0-bionic $ docker inspect openresty/openresty:1.17.8.1-0-bionic | jq '.[].Config.Labels'
| Label Name | Description |
|---|---|
maintainer | Maintainer of the image |
resty_add_package_builddeps | buildarg RESTY_ADD_PACKAGE_BUILDDEPS |
resty_add_package_rundeps | buildarg RESTY_ADD_PACKAGE_RUNDEPS |
resty_apk_alpine_version | buildarg RESTY_APK_ALPINE_VERSION |
resty_apk_key_url | buildarg RESTY_APK_KEY_URL |
resty_apk_repo_url | buildarg RESTY_APK_REPO_URL |
resty_apk_version | buildarg RESTY_APK_VERSION |
resty_apt_pgp | buildarg RESTY_APT_PGP |
resty_apt_repo | buildarg RESTY_APT_REPO |
resty_apt_arch | buildarg RESTY_APT_ARCH |
resty_config_deps | buildarg _RESTY_CONFIG_DEPS (internal) |
resty_config_options_more | buildarg RESTY_CONFIG_OPTIONS_MORE |
resty_config_options | buildarg RESTY_CONFIG_OPTIONS |
resty_deb_flavor | buildarg RESTY_DEB_FLAVOR |
resty_deb_version | buildarg RESTY_DEB_VERSION (available versions) |
resty_eval_pre_make | buildarg RESTY_EVAL_PRE_MAKE |
resty_eval_post_make | buildarg RESTY_EVAL_POST_MAKE |
resty_eval_pre_configure | buildarg RESTY_EVAL_PRE_CONFIGURE |
resty_eval_post_download_pre_configure | buildarg RESTY_EVAL_POST_DOWNLOAD_PRE_CONFIGURE |
resty_fat_deb_flavor | buildarg RESTY_FAT_DEB_FLAVOR |
resty_fat_deb_version | buildarg RESTY_FAT_DEB_VERSION |
resty_fat_image_base | Name of the base image to build fat images from, buildarg RESTY_FAT_IMAGE_BASE |
resty_fat_image_tag | Tag of the base image to build fat images from, buildarg RESTY_FAT_IMAGE_TAG |
resty_image_base | Name of the base image to build from, buildarg RESTY_IMAGE_BASE |
resty_image_tag | Tag of the base image to build from, buildarg RESTY_IMAGE_TAG |
resty_install_base | buildarg RESTY_INSTALL_BASE |
resty_install_tag | buildarg RESTY_INSTALL_TAG |
resty_luajit_options | buildarg RESTY_LUAJIT_OPTIONS |
resty_luarocks_version | buildarg RESTY_LUAROCKS_VERSION |
resty_openssl_patch_version | buildarg RESTY_OPENSSL_PATCH_VERSION |
resty_openssl_url_base | buildarg RESTY_OPENSSL_URL_BASE |
resty_openssl_version | buildarg RESTY_OPENSSL_VERSION |
resty_openssl_build_options | buildarg RESTY_OPENSSL_BUILD_OPTIONS |
resty_pcre_build_options | buildarg RESTY_PCRE_BUILD_OPTIONS |
resty_pcre_options | buildarg RESTY_PCRE_OPTIONS |
resty_pcre_sha256 | buildarg RESTY_PCRE_SHA256 |
resty_pcre_version | buildarg RESTY_PCRE_VERSION |
resty_rpm_arch | buildarg RESTY_RPM_ARCH |
resty_rpm_dist | buildarg RESTY_RPM_DIST |
resty_rpm_flavor | buildarg RESTY_RPM_FLAVOR |
resty_rpm_version | buildarg RESTY_RPM_VERSION |
resty_strip_binaries | buildarg RESTY_STRIP_BINARIES |
resty_version | buildarg RESTY_VERSION |
resty_yum_repo | buildarg RESTY_YUM_REPO |
The -g "daemon off;" directive is used in the Dockerfile CMD to keep the Nginx daemon running after container creation. If this directive is added to the nginx.conf, then the docker run should explicitly invoke openresty (or nginx for windows images):
docker run [options] openresty/openresty:bionic openresty
Invoke another CMD, for example the resty utility, like so:
docker run [options] openresty/openresty:bionic resty [script.lua]
NOTE The alpine images do not include the packages perl and ncurses, which is needed by the resty utility.
You're very welcome to report bugs and give feedback as GitHub Issues:
https://github.com/openresty/docker-openresty/issues
Back to TOC
Back to TOC
docker-openresty is licensed under the 2-clause BSD license.
Copyright (c) 2017-2024, Evan Wies <***>.
This module is licensed under the terms of the BSD license.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Back to TOC




探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务