专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 51517718

openresty/openresty Docker 镜像 - 轩辕镜像

openresty
openresty/openresty
自动构建
OpenResty官方Docker镜像是基于NGINX和LuaJIT构建的动态Web平台,它整合了NGINX的高性能HTTP处理与反向代理能力及LuaJIT的高效即时编译脚本技术,适用于开发高并发、低延迟的动态Web应用、API网关、负载均衡系统等场景。该官方Docker镜像提供标准化部署环境,简化配置流程,确保跨平台一致性与可靠性,助力开发者快速集成并高效利用OpenResty的强大功能,实现灵活的Web服务开发与部署。
479 收藏0 次下载activeopenresty镜像
🚀专业版镜像服务,面向生产环境设计
版本下载
🚀专业版镜像服务,面向生产环境设计
Docker Image GitHub Repo
Full README
Custom Image Building

docker-openresty - Docker tooling for OpenResty

![Travis Status]([] ![Appveyor status]([]

docker-openresty is Docker tooling for OpenResty ([***]

Docker is a container management platform. OpenResty is a full-fledged web application server by bundling the standard nginx core, lots of 3rd-party nginx modules, as well as most of their external dependencies.

Thank you to Travis CI for donating their build infrastructure to this project for over seven years!

We provide a series of pre-built images for various operating systems. Some are built-from the upstream OpenResty pre-built images and some are built from source.

You can learn more about building your own custom and derived images in BUILDING.md.


Table of Contents

  • OpenResty Image Tags
  • Table of Contents
  • Usage
  • Policies
  • Nginx Config Files
  • Image Labels
  • Docker CMD
  • Feedback & Bug Reports
  • Changelog & Authors
  • Copyright & License

OpenResty Image Tags

It is best practice to pin your images to an explicit image tag. The next section below covers the conventions in detail, but here are some common examples:

ImageDescription
openresty/openresty:1.27.1.2-0-jammyBuilt-from-source Ubuntu Jammy
openresty/openresty:1.27.1.2-0-focalBuilt-from-source Ubuntu Focal
openresty/openresty:1.27.1.2-0-bookworm-fatBuilt-from-upstream Debian Bookworm
openresty/openresty:1.27.1.2-0-alpineBuilt-from-source Alpine
openresty/openresty:1.27.1.2-0-alpine-apkBuilt-from-upstream Alpine

These are examples of untagged image names, for reference:

ImageDescription
openresty/openresty:nobleLatest Ubuntu Noble
openresty/openresty:jammyLatest Ubuntu Jammy
openresty/openresty:alpineLatest Alpine

There are also specific tags for Debug and Valgrind OpenResty variants:

ImageDescription
openresty/openresty:bullseye-debugBullseye flavor with openresty-debug
openresty/openresty:bullseye-valgrindBullseye flavor with openresty-valgrind
openresty/openresty:bullseye-fat-debugBullseye FAT flavor with openresty-debug
openresty/openresty:bullseye-fat-valgrindBullseye FAT flavor with openresty-valgrind

As of 1.27.1.2-1, we also mirror to the GitHub Container Registry. Simply prefix the registry path with ghcr.io/:

  • ghcr.io/openresty/openresty:1.27.1.2-1-bullseye

Usage

If you are happy with the build defaults, then you can use the openresty image from the Docker Hub. The image tags available there are listed at the top of this README.

docker run [options] openresty/openresty:bullseye-fat

[options] would be things like -p to map ports, -v to map volumes, and -d to daemonize.

docker-openresty symlinks /usr/local/openresty/nginx/logs/access.log and error.log to /dev/stdout and /dev/stderr respectively, so that Docker logging works correctly. If you change the log paths in your nginx.conf, you should symlink those paths as well. This is not possible with the windows image.

Temporary directories such as client_body_temp_path are stored in /var/run/openresty/. You may consider mounting that volume, rather than writing to a container-local directory. This is not done for windows.

Supported tags and respective Dockerfile links

The following "flavors" are available and built from upstream OpenResty packages:

  • alpine-apk, (alpine-apk/Dockerfile)
  • amzn2, (centos/Dockerfile with amzn2)
  • bookworm-buildpack, (bookworm/Dockerfile.buildpack)
  • bookworm-fat, (bookworm/Dockerfile.fat)
  • bookworm, (bookworm/Dockerfile)
  • bullseye-fat, (bullseye/Dockerfile.fat)
  • bullseye, (bullseye/Dockerfile)
  • centos, centos-rpm, (centos/Dockerfile with el8)
  • centos7, (centos7/Dockerfile with el7)
  • fedora, fedora-rpm, (fedora/Dockerfile with fc36)
  • rocky, (fedora/Dockerfile with rockylinux)
  • windows, (windows/Dockerfile)

The following "flavors" are built from source and are intended for more advanced and custom usage, caveat emptor:

  • alpine-fat, (alpine/Dockerfile.fat)
  • alpine, (alpine/Dockerfile)
  • alpine-slim, (alpine/Dockerfile, stripped Alpine image)
  • bionic, (bionic/Dockerfile)
  • focal, (focal/Dockerfile)
  • jammy, (jammy/Dockerfile)
  • noble, (noble/Dockerfile)

The openresty/openresty:latest tag points to the latest bookworm image.

Since 1.19.3.2-1, all flavors support multi-architecture builds, both amd64 and aarch64. Since 1.21.4.1-1, the s390x architecture is supported for build-from-source Ubuntu flavors (like jammy); prior to version 1.27.1.2-3, PCRE JIT 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 buildpack-deps images; they might be useful when more build scaffolding is required in your application.

Policies

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:

    • alpine-apk, (alpine-apk/Dockerfile)
    • amzn2, (centos/Dockerfile with amzn2)
    • bullseye-fat, (bullseye/Dockerfile.fat)
    • bullseye, (bullseye/Dockerfile)
    • centos, centos-rpm, (centos/Dockerfile with el8)
    • centos7, (centos7/Dockerfile with el7)
    • fedora, fedora-rpm, (fedora/Dockerfile with fc36)
    • rocky, (fedora/Dockerfile with rockylinux)
    • windows, (windows/Dockerfile)
  • We track build-from-source images as follows:

    • Alpine stable
    • Ubuntu "LTS"
  • We 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.

Nginx Config Files

The Docker tooling installs its own nginx.conf file. 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 default virtual host configuration 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 issue 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

Image Labels

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 NameDescription
maintainerMaintainer of the image
resty_add_package_builddepsbuildarg RESTY_ADD_PACKAGE_BUILDDEPS
resty_add_package_rundepsbuildarg RESTY_ADD_PACKAGE_RUNDEPS
resty_apk_alpine_versionbuildarg RESTY_APK_ALPINE_VERSION
resty_apk_key_urlbuildarg RESTY_APK_KEY_URL
resty_apk_repo_urlbuildarg RESTY_APK_REPO_URL
resty_apk_versionbuildarg RESTY_APK_VERSION
resty_apt_pgpbuildarg RESTY_APT_PGP
resty_apt_repobuildarg RESTY_APT_REPO
resty_apt_archbuildarg RESTY_APT_ARCH
resty_config_depsbuildarg _RESTY_CONFIG_DEPS (internal)
resty_config_options_morebuildarg RESTY_CONFIG_OPTIONS_MORE
resty_config_optionsbuildarg RESTY_CONFIG_OPTIONS
resty_deb_flavorbuildarg RESTY_DEB_FLAVOR
resty_deb_versionbuildarg RESTY_DEB_VERSION (available versions)
resty_eval_pre_makebuildarg RESTY_EVAL_PRE_MAKE
resty_eval_post_makebuildarg RESTY_EVAL_POST_MAKE
resty_eval_pre_configurebuildarg RESTY_EVAL_PRE_CONFIGURE
resty_eval_post_download_pre_configurebuildarg RESTY_EVAL_POST_DOWNLOAD_PRE_CONFIGURE
resty_fat_deb_flavorbuildarg RESTY_FAT_DEB_FLAVOR
resty_fat_deb_versionbuildarg RESTY_FAT_DEB_VERSION
resty_fat_image_baseName of the base image to build fat images from, buildarg RESTY_FAT_IMAGE_BASE
resty_fat_image_tagTag of the base image to build fat images from, buildarg RESTY_FAT_IMAGE_TAG
resty_image_baseName of the base image to build from, buildarg RESTY_IMAGE_BASE
resty_image_tagTag of the base image to build from, buildarg RESTY_IMAGE_TAG
resty_install_basebuildarg RESTY_INSTALL_BASE
resty_install_tagbuildarg RESTY_INSTALL_TAG
resty_luajit_optionsbuildarg RESTY_LUAJIT_OPTIONS
resty_luarocks_versionbuildarg RESTY_LUAROCKS_VERSION
resty_openssl_patch_versionbuildarg RESTY_OPENSSL_PATCH_VERSION
resty_openssl_url_basebuildarg RESTY_OPENSSL_URL_BASE
resty_openssl_versionbuildarg RESTY_OPENSSL_VERSION
resty_openssl_build_optionsbuildarg RESTY_OPENSSL_BUILD_OPTIONS
resty_pcre_build_optionsbuildarg RESTY_PCRE_BUILD_OPTIONS
resty_pcre_optionsbuildarg RESTY_PCRE_OPTIONS
resty_pcre_sha256buildarg RESTY_PCRE_SHA256
resty_pcre_versionbuildarg RESTY_PCRE_VERSION
resty_rpm_archbuildarg RESTY_RPM_ARCH
resty_rpm_distbuildarg RESTY_RPM_DIST
resty_rpm_flavorbuildarg RESTY_RPM_FLAVOR
resty_rpm_versionbuildarg RESTY_RPM_VERSION
resty_strip_binariesbuildarg RESTY_STRIP_BINARIES
resty_versionbuildarg RESTY_VERSION
resty_yum_repobuildarg RESTY_YUM_REPO

Docker CMD

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.

Feedback & Bug Reports

You're very welcome to report bugs and give feedback as GitHub Issues:

[***]

Back to TOC

Changelog & Authors

  • CHANGELOG
  • AUTHORS

Back to TOC

Copyright & License

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:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

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

查看更多 openresty 相关镜像 →
bitnami/openresty logo
bitnami/openresty
by VMware
认证
Bitnami openresty 安全镜像
27500K+ pulls
上次更新:4 个月前
1panel/openresty logo
1panel/openresty
by 1panel
暂无描述
6500K+ pulls
上次更新:1 个月前
quiq/openresty logo
quiq/openresty
by quiq
增强型OpenResty镜像,基于alpine-fat版本构建,集成预安装LUA插件、多阶段构建减小体积、支持缓存OPTIONS请求及Docker Notary签名,适用于高性能Web服务与API网关场景。
110K+ pulls
上次更新:9 个月前
pcel/openresty logo
pcel/openresty
by pcel
暂无描述
100K+ pulls
上次更新:7 个月前
crowdsecurity/openresty logo
crowdsecurity/openresty
by crowdsecurity
集成CrowdSec Lua防护组件的Openresty镜像,用于提供Web安全防护,拦截恶意请求。
10K+ pulls
上次更新:3 个月前
apitable/openresty logo
apitable/openresty
by apitable
暂无描述
50K+ pulls
上次更新:8 个月前

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

MacOS OrbStack

MacOS OrbStack 容器配置

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

oldzhang的头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
openresty/openresty
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
提交工单
咨询镜像拉取问题请 提交工单,官方技术交流群:51517718
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
咨询镜像拉取问题请提交工单,官方技术交流群:
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.