轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥7起我的订单
文档
工具
提交工单页面收录
perl

library/perl

Docker 官方镜像

Perl是一种高级、通用、解释型动态编程语言,此Docker镜像用于在容器环境中运行Perl应用程序,支持多种版本和变体以适应不同需求。

474 次收藏下载次数: 0状态:Docker 官方镜像维护者:Docker 官方镜像仓库类型:镜像最近更新:7 天前
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这句话即可:

请先完整阅读并严格遵守以下文档中的全部规则与要求:

https://xuanyuan.cloud/agents.md

在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

DockerHub 官方简介
轩辕镜像中文简介
下载命令
镜像标签列表与下载命令
轩辕镜像,让镜像更快,让人生更轻。
点击查看

Quick reference

  • Maintained by:
    https://github.com/Perl/docker-perl

  • Where to get help:
    the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow

Supported tags and respective Dockerfile links

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.042.002-main-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.042.002-main-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.042.002-main-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.042.002-slim-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.042.002-slim-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.042.002-slim-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.042.002-main,threaded-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.042.002-main,threaded-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.042.002-main,threaded-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.042.002-slim,threaded-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.042.002-slim,threaded-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.042.002-slim,threaded-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.040.004-main-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.040.004-main-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.040.004-main-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.040.004-slim-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.040.004-slim-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.040.004-slim-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.040.004-main,threaded-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.040.004-main,threaded-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.040.004-main,threaded-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.040.004-slim,threaded-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.040.004-slim,threaded-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.040.004-slim,threaded-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.038.005-main-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.038.005-main-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.038.005-main-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.038.005-slim-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.038.005-slim-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.038.005-slim-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.038.005-main,threaded-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.038.005-main,threaded-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.038.005-main,threaded-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.038.005-slim,threaded-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.038.005-slim,threaded-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.038.005-slim,threaded-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.043.009-main-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.043.009-main-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.043.009-main-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.043.009-slim-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.043.009-slim-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.043.009-slim-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.043.009-main,threaded-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.043.009-main,threaded-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.043.009-main,threaded-bullseye/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.043.009-slim,threaded-trixie/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.043.009-slim,threaded-bookworm/Dockerfile

  • https://github.com/perl/docker-perl/blob/4547275f4b1b830384ad36e4728ad86a55ea3658/5.043.009-slim,threaded-bullseye/Dockerfile

Quick reference (cont.)

  • Where to file issues:
    https://github.com/Perl/docker-perl/issues?q=

  • Supported architectures: (https://github.com/docker-library/official-images#architectures-other-than-amd64)
    https://hub.docker.com/r/amd64/perl/, https://hub.docker.com/r/arm32v5/perl/, https://hub.docker.com/r/arm32v7/perl/, https://hub.docker.com/r/arm64v8/perl/, https://hub.docker.com/r/i386/perl/, https://hub.docker.com/r/mips64le/perl/, https://hub.docker.com/r/ppc64le/perl/, https://hub.docker.com/r/riscv64/perl/, https://hub.docker.com/r/s390x/perl/

  • Published image artifact details:
    https://github.com/docker-library/repo-info/blob/master/repos/perl (https://github.com/docker-library/repo-info/commits/master/repos/perl)
    (image metadata, transfer size, etc)

  • Image updates:
    https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Fperl
    https://github.com/docker-library/official-images/blob/master/library/perl (https://github.com/docker-library/official-images/commits/master/library/perl)

  • Source of this description:
    https://github.com/docker-library/docs/tree/master/perl (https://github.com/docker-library/docs/commits/master/perl)

What is Perl?

Perl is a high-level, general-purpose, interpreted, dynamic programming language. The Perl language borrows features from other programming languages, including C, shell scripting (sh), AWK, and sed.

***.org/wiki/Perl

!https://raw.githubusercontent.com/docker-library/docs/2f0c63f66919d5f310ba8357cec5f12d93ef4208/perl/logo.png

How to use this image

Create a Dockerfile in your Perl app project

dockerfile
FROM perl:5.34
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
CMD [ "perl", "./your-daemon-or-script.pl" ]

Then, build and run the Docker image:

console
$ docker build -t my-perl-app .
$ docker run -it --rm --name my-running-app my-perl-app

Run a single Perl script

For many simple, single file projects, you may find it inconvenient to write a complete Dockerfile. In such cases, you can run a Perl script by using the Perl Docker image directly:

console
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp perl:5.34 perl your-daemon-or-script.pl

Coexisting with Debian's /usr/bin/perl

The perl binary built for this image is installed in /usr/local/bin/perl, along with other standard tools in the Perl distribution such as prove and perldoc, as well as cpanm for installing CPAN modules. Containers running this image will also have their PATH enviroment set like /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin to ensure that this perl binary will be found first in normal usage.

As this official image of Docker is built using the https://hub.docker.com/_/buildpack-deps image (or https://hub.docker.com/_/debian for :slim variants,) this image also contains a /usr/bin/perl as supplied by the Debian project. This is needed for the underlying dpkg/apt) package management tools to work correctly, as docker-perl cannot be used here due to different configuration (such as @INC and installation paths, as well as other differences like whether -Dusethreads is included or not.)

See also https://github.com/Perl/docker-perl/issues/26 for an extended discussion.

Signal handling behavior notice

As Perl will run as PID 1 by default in containers (unless an ENTRYPOINT is set,) special care needs to be ***ed when expecting to send signals (particularly SIGINT or SIGTERM) to it. For example, running

console
$ docker run -it --name sleeping_beauty --rm perl:5.34 perl -E 'sleep 300'

and doing on another terminal,

console
$ docker exec sleeping_beauty kill 1

will not stop the perl running on the sleeping_beauty container (it will keep running until the sleep 300 finishes.) To do so, one must set a signal handler like this:

console
$ docker run -it --name quick_nap --rm perl:5.34 perl -E '$SIG{TERM} = sub { $sig++; say "recv TERM" }; sleep 300; say "waking up" if $sig'

so doing docker exec quick_nap kill 1 (or the simpler docker stop quick_nap) will immediately stop the container, and print recv TERM in the other terminal. Note that the signal handler does not stop the perl process itself unless it calls a die or exit; in this case, perl will continue and print waking up after it receives the signal.

If your Perl program is expected to handle signals and fork child processes, it is encouraged to use an init-like program for ENTRYPOINT, such as https://github.com/Yelp/dumb-init or https://github.com/krallin/tini (the latter is available since Docker 1.13 via the docker run --init flag.)

See also Signals in perlipc as well as https://github.com/Perl/docker-perl/issues/44.

COPY and WORKDIR behavior in Debian Bookworm based images (Perl >= 5.38)

As our Perl images are based on the standard buildpack-deps and debian images, these inherit the new merged-usr root filesystem layout introduced in Debian 12 (Bookworm) which may affect certain build contexts that COPY their own bin, sbin, or lib directories into a WORKDIR /. Users are encouraged to set WORKDIR explicitly to a path other than / as much as possible, such as the /usr/src/app shown here in the examples, though as of current release our images now default to WORKDIR /usr/src/app.

See also https://github.com/Perl/docker-perl/issues/140 for further information.

Example: Creating a reusable Carton image for Perl projects

Suppose you have a project that uses Carton to manage Perl dependencies. You can create a perl:carton image that makes use of the ONBUILD instruction in its Dockerfile, like this:

dockerfile
FROM perl:5.34

RUN cpanm Carton \
    && mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY cpanfile* /usr/src/app
ONBUILD RUN carton install

ONBUILD COPY . /usr/src/app

Then, in your Carton project, you can now reduce your project's Dockerfile into a single line of FROM perl:carton, which may be enough to build a stand-alone image.

Having a single perl:carton base image is useful especially if you have multiple Carton-based projects in development, to avoid "boilerplate" coding of installing Carton and/or copying the project source files into the derived image. Keep in mind, though, about certain things to *** when using the Perl image in this way:

  • This kind of base image will hide the useful bits (such as theCOPY/RUN above) in the image, separating it from more specific Dockerfiles using the base image. This might lead to confusion when creating further derived images, so be aware of how ONBUILD triggers work and plan appropriately.
  • There is the cost of maintaining an extra base image build, so if you're working on a single Carton project and/or plan to publish it, then it may be more preferable to derive directly from a versioned perl image instead.

Image Variants

The perl images come in many flavors, each designed for a specific use case.

perl:<version>

This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of.

Some of these tags may have names like bookworm, bullseye, or trixie in them. These are the suite code names for releases of Debian and indicate which release the image is based on. If your image needs to install any additional packages beyond what comes with the image, you'll likely want to specify one of these explicitly to minimize breakage when there are new releases of Debian.

This tag is based off of https://hub.docker.com/_/buildpack-deps/. buildpack-deps is designed for the average user of Docker who has many images on their system. It, by design, has a large number of extremely common Debian packages. This reduces the number of packages that images that derive from it need to install, thus reducing the overall size of all images on your system.

perl:<version>-slim

This image does not contain the common packages contained in the default tag and only contains the minimal packages needed to run perl. Unless you are working in an environment where only the perl image will be deployed and you have space constraints, we highly recommend using the default image of this repository.

License

View license information for the software contained in this image.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

Some additional license information which was able to be auto-detected might be found in https://github.com/docker-library/repo-info/tree/master/repos/perl.

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

Deployment & Usage Documentation

PERL Docker 容器化部署指南

PERL(Practical Extraction and Reporting Language)是一种高级、通用、解释型、动态编程语言,其语法借鉴了C、Shell脚本、AWK和sed等多种语言特性,广泛应用于系统管理、Web开发、网络编程等领域。通过Docker容器化部署PERL,可以实现环境一致性、快速部署和资源隔离,有效简化开发与运维流程。

Read More

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 perl 镜像标签

docker pull docker.xuanyuan.run/perl:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull perl:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

iKuai 镜像加速

宝塔面板

一键配置镜像源

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

一键安装

一键安装 Docker

Linux Docker 一键安装

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

镜像拉取常见问题

功能

免费版与专业版区别

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

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

用户头像

oldzhang

运维工程师

Linux服务器

5

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

轩辕镜像
Docker 官方镜像
...
library/perl
教程轩辕镜像功能与使用教程
定价查看流量套餐与价格
热门查看热门 Docker 镜像推荐
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥7/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥7/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
商务合作:点击复制邮箱
用户协议·隐私政策·©2024-2026 源码跳动
用户协议·隐私政策©2024-2026 杭州源码跳动科技有限公司商务合作:点击复制邮箱

更多 perl 镜像推荐

activestate/perl logo

activestate/perl

activestate
ActiveState的可定制、低至无漏洞的Perl容器镜像,提供安全、最新的Perl工具链,用于构建和运行Perl应用,精简且包含标准库和构建工具。
11 次收藏6.2千+ 次下载
12 天前更新
dockette/perl logo

dockette/perl

dockette
基于Debian的即用型Perl环境镜像,集成Perl Critic工具,适用于Perl项目开发、运行及代码质量检查。
1 次收藏1万+ 次下载
5 年前更新
stagex/perl logo

stagex/perl

stagex
Perl语言的官方Docker镜像,提供稳定的Perl运行环境,用于运行Perl脚本和应用程序,支持Perl核心功能及扩展模块安装。
922 次下载
1 年前更新
arm64v8/perl logo

arm64v8/perl

arm64v8
Perl是一种高级、通用、解释型、动态编程语言,本镜像为其官方arm64v8架构构建版本,适用于在Docker环境中开发和运行Perl应用程序。
2 次收藏100万+ 次下载
13 天前更新
arm32v7/perl logo

arm32v7/perl

arm32v7
Perl是一种高级、通用、解释型的动态编程语言,借鉴了C、shell脚本、AWK和sed等语言特性,适用于各类编程任务。
2 次收藏100万+ 次下载
13 天前更新
i386/perl logo

i386/perl

i386
Perl是一种高级、通用、解释型、动态编程语言。
1 次收藏100万+ 次下载
13 天前更新

查看更多 perl 相关镜像

更多相关 Docker 镜像与资源

以下是 perl 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:

  • i386/perl Docker 镜像说明(Perl 运行时,i386 架构版本)
  • library/python Docker 镜像说明(Python 运行时,适合数据科学和 Web 开发)
  • demisto/python Docker 镜像说明(Python 运行时,Demisto 安全自动化平台)
  • chainguard/python Docker 镜像说明(Python 运行时,Chainguard 安全加固版本)
  • intel/python Docker 镜像说明(Python 运行时,Intel 优化版本,适合高性能计算)