注意:这是https://hub.docker.com/_/haxe%E7%9A%84%60amd64%60%E6%9E%B6%E6%9E%84%E6%9E%84%E5%BB%BA%E7%89%88%E6%9C%AC%E7%9A%84%22%E6%AF%8F%E6%9E%B6%E6%9E%84%22%E4%BB%93%E5%BA%93%E2%80%94%E2%80%94%E6%9B%B4%E5%A4%9A%E4%BF%A1%E6%81%AF%EF%BC%8C%E8%AF%B7%E5%8F%82%E8%A7%81%E5%AE%98%E6%96%B9%E9%95%9C%E5%83%8F%E6%96%87%E6%A1%A3%E4%B8%AD%E7%9A%84https://github.com/docker-library/official-images#architectures-other-than-amd64%E5%92%8C%E5%AE%98%E6%96%B9%E9%95%9C%E5%83%8FFAQ%E4%B8%AD%E7%9A%84https://github.com/docker-library/faq#an-images-source-changed-in-git-now-what%E3%80%82
维护者:
https://github.com/HaxeFoundation/docker-library-haxe
获取帮助:
Docker社区Slack、Server Fault、Unix & Linux或Stack Overflow
Dockerfile链接(参见FAQ中的https://github.com/docker-library/faq#whats-the-difference-between-shared-and-simple-tags%EF%BC%89
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.3/bookworm/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.3/bullseye/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/29c1c10f60a3d5d96c92c23ed8d07f5393c962b5/4.3/alpine3.22/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/29c1c10f60a3d5d96c92c23ed8d07f5393c962b5/4.3/alpine3.21/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.3/alpine3.20/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.3/alpine3.19/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/5.0/bookworm/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/5.0/bullseye/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/29c1c10f60a3d5d96c92c23ed8d07f5393c962b5/5.0/alpine3.22/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/29c1c10f60a3d5d96c92c23ed8d07f5393c962b5/5.0/alpine3.21/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/5.0/alpine3.20/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/5.0/alpine3.19/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.2/bookworm/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.2/bullseye/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.2/alpine3.20/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.2/alpine3.19/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.1/bullseye/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.1/alpine3.20/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.1/alpine3.19/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.0/bullseye/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.0/alpine3.20/Dockerfile
https://github.com/HaxeFoundation/docker-library-haxe/blob/2636eee6b67d0c99730e4ab1d0d752d66809e3fa/4.0/alpine3.19/Dockerfile
4.3.7, 4.3, latest:
5.0.0-preview.1, 5.0.0, 5.0:
4.2.5, 4.2:
4.1.5, 4.1:
4.0.5, 4.0:
提交问题的位置:
https://github.com/HaxeFoundation/docker-library-haxe/issues?q=
支持的架构:(https://github.com/docker-library/official-images#architectures-other-than-amd64)
https://hub.docker.com/r/amd64/haxe/, https://hub.docker.com/r/arm32v7/haxe/, https://hub.docker.com/r/arm64v8/haxe/, https://hub.docker.com/r/winamd64/haxe/
已发布镜像工件详情:
https://github.com/docker-library/repo-info/blob/master/repos/haxe (https://github.com/docker-library/repo-info/commits/master/repos/haxe)
(镜像元数据、传输大小等)
镜像更新:
https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Fhaxe
https://github.com/docker-library/official-images/blob/master/library/haxe (https://github.com/docker-library/official-images/commits/master/library/haxe)
本描述的来源:
https://github.com/docker-library/docs/tree/master/haxe (https://github.com/docker-library/docs/commits/master/haxe)
Haxe是一个开源工具包,基于现代、高级、严格类型的编程语言、跨编译器、完整的跨平台标准库以及访问各平台原生功能的方式。
Haxe编译器可以输出多种源代码和二进制文件。截至Haxe 3.4.0-rc.1,Haxe编译器可目标化为JavaScript、Java、C#、C++、Python、PHP、Flash SWF、ActionScript 3、Lua和Neko。
!https://raw.githubusercontent.com/docker-library/docs/8ae987dec04fb5ecc15adcba1f9d62b40d0d3ec2/haxe/logo.png
此镜像包含一个最小化的Haxe工具包:
haxe编译器及其标准库haxelib库管理器neko虚拟机使用此镜像最直接的方式是将Haxe容器同时用作构建和运行环境。在Dockerfile中,编写如下内容可编译并运行项目:
dockerfileFROM amd64/haxe:3.4 RUN mkdir -p /usr/src/app WORKDIR /usr/src/app # 安装依赖 COPY *.hxml /usr/src/app/ RUN yes | haxelib install all # 编译项目 COPY . /usr/src/app RUN haxe build.hxml # 容器启动时运行输出 CMD ["neko", "Main.n"]
然后,构建并运行Docker镜像:
console$ docker build -t my-haxe-app . $ docker run -it --rm --name my-running-app my-haxe-app
有onbuild变体包含多个ONBUILD触发器,可执行上述Dockerfile中的所有步骤,但不包含运行编译输出的CMD指令。
使用amd64/haxe:3.4-onbuild重写上述Dockerfile,我们将得到:
dockerfileFROM amd64/haxe:3.4-onbuild # 容器启动时运行输出 CMD ["neko", "Main.n"]
onbuild变体假设主编译hxml文件名为build.hxml。要使用其他hxml文件,在构建时设置BUILD_HXML构建参数:
console$ docker build -t my-haxe-app --build-arg BUILD_HXML=compile.hxml .
amd64/haxe镜像有多种版本,每种版本设计用于特定用例。
amd64/haxe:<version>这是默认镜像。如果不确定需求,可能需要使用此版本。它设计为既可作为临时容器(挂载源代码并启动容器以运行应用),也可作为构建其他镜像的基础。
某些标签可能包含bookworm或bullseye等名称,这些是Debian的版本代号,表示镜像基于哪个发行版。如果镜像需要安装除自带包之外的其他包,可能需要显式指定这些代号以减少Debian新版本发布时的中断。
amd64/haxe:<version>-alpine此镜像基于流行的Alpine Linux项目,可在https://hub.docker.com/_/alpine%E4%B8%AD%E8%8E%B7%E5%8F%96%E3%80%82Alpine Linux比大多数发行版基础镜像小得多(约5MB),因此通常会生成更精简的镜像。
此变体在最终镜像大小尽可能小是主要关注点时非常有用。需要注意的是,它使用musl libc而非glibc及相关库,
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

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