
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Build and run amule broadband branch (https://github.com/mercu01/amule)
tag: mercu/builder-amule:arm64
tag: mercu/builder-amule:amd64
https://hub.docker.com/r/mercu/builder-amule
https://img.shields.io/github/v/release/ngosang/docker-amule](https://github.com/ngosang/docker-amule/releases) https://img.shields.io/docker/pulls/](https://hub.docker.com/r/***/) https://img.shields.io/badge/Donate-***-yellow.svg]([] https://img.shields.io/badge/Donate-***-f7931a.svg]([] https://img.shields.io/badge/Donate-***-8c8c8c.svg]([]
https://github.com/amule-project/amule is a multi-platform client for the ED2K file sharing network and based on the windows client eMule. aMule started in August 2003, as a fork of xMule, which is a fork of lMule.
Inspired by https://github.com/tchabaud/dockerfiles/tree/master/amule and https://github.com/synopsis8/dockerfiles/tree/master/amule work.
Docker images are available in https://github.com/users/ngosang/packages/container/package/amule and https://hub.docker.com/r/***.
bashdocker pull ghcr.io/ngosang/amule or docker pull ngosang/amule
The architectures supported by this image are:
The web interface is at: <your-ip>:4711
For better download speed you have to open these ports:
Here are some example snippets to help you get started creating a container.
Compatible with docker-compose v2 schemas.
yaml--- version: "2.1" services: amule: image: ngosang/amule container_name: amule environment: - PUID=1000 - PGID=1000 - TZ=Europe/London # GUI_PWD and WEBUI_PWD are only used in initial setup - GUI_PWD=<fill_password> - WEBUI_PWD=<fill_password> - MOD_AUTO_RESTART_ENABLED=true - MOD_AUTO_RESTART_CRON=0 6 * * * - MOD_AUTO_SHARE_ENABLED=false - MOD_AUTO_SHARE_DIRECTORIES=/incoming;/my_movies - MOD_FIX_KAD_GRAPH_ENABLED=true ports: - "4711:4711" # web ui - "4712:4712" # remote gui, webserver, cmd ... - "4662:4662" # ed2k tcp - "4665:4665/udp" # ed2k global search udp (tcp port +3) - "4672:4672/udp" # ed2k udp volumes: - <fill_amule_configuration_path>:/home/amule/.aMule - <fill_amule_completed_downloads_path>:/incoming - <fill_amule_incomplete_downloads_path>:/temp restart: unless-stopped
bashdocker run -d \ --name=amule \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Europe/London \ -e GUI_PWD=<fill_password> `#optional` \ -e WEBUI_PWD=<fill_password> `#optional` \ -e MOD_AUTO_RESTART_ENABLED=true `#optional` \ -e 'MOD_AUTO_RESTART_CRON=0 6 * * *' `#optional` \ -e MOD_AUTO_SHARE_ENABLED=false `#optional` \ -e MOD_AUTO_SHARE_DIRECTORIES=/incoming;/my_movies `#optional` \ -e MOD_FIX_KAD_GRAPH_ENABLED=true `#optional` \ -p 4711:4711 \ -p 4712:4712 \ -p 4662:4662 \ -p 4665:4665/udp \ -p 4672:4672/udp \ -v <fill_amule_configuration_path>:/home/amule/.aMule \ -v <fill_amule_completed_downloads_path>:/incoming \ -v <fill_amule_incomplete_downloads_path>:/temp \ --restart unless-stopped \ ngosang/amule
Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.
| Parameter | Function |
|---|---|
-p 4711 | Web UI port. |
-p 4712 | Remote gui, webserver, cmd port. |
-p 4662 | ED2K TCP port (must be open to Internet). |
-p 4665/udp | ED2K global search UDP port (tcp port +3) (must be open to Internet). |
-p 4672/udp | ED2K UDP port (must be open to Internet). |
-e PUID=1000 | for UserID - see below for explanation. |
-e PGID=1000 | for GroupID - see below for explanation. |
-e TZ=Europe/London | Specify a timezone to use EG Europe/London. |
-e GUI_PWD=<fill_password> | Set Remote GUI password (only used in initial setup). |
-e WEBUI_PWD=<fill_password> | Set Web UI password (only used in initial setup). |
-e MOD_AUTO_RESTART_ENABLED=true | Enable aMule auto restart. Check modifications section. |
-e 'MOD_AUTO_RESTART_CRON=0 6 * * *' | aMule auto restart cron mask. Check modifications section. |
-e MOD_AUTO_SHARE_ENABLED=false | Enable aMule auto share. Check modifications section. |
-e MOD_AUTO_SHARE_DIRECTORIES=/incoming;/my_movies | aMule auto share directories with subdirectories. Check modifications section. |
-e MOD_FIX_KAD_GRAPH_ENABLED=true | Fix Kad stats graph bug. Check modifications section. |
-v /home/amule/.aMule | Path to save aMule configuration. |
-v /incoming | Path to completed torrents. |
-v /temp | Path to incomplete torrents. |
When using volumes (-v flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
In this instance PUID=1000 and PGID=1000, to find yours use id user as below:
bash$ id username uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
The Docker image includes some unofficial features. All of them are optional.
The Docker image includes the classic aMule Web UI and https://github.com/MatteoRagni/AmuleWebUI-Reloaded theme.
You can change the theme editing the amule.conf file and changing Template=AmuleWebUI-Reloaded. Let this option empty to use the default theme.
aMule has some issues that cause it to stop working properly after a few days:
As workaround, we have implemented a cron scheduler to restart aMule from time to time. To enable this mod set these environment variables:
MOD_AUTO_RESTART_ENABLED=trueMOD_AUTO_RESTART_CRON=0 6 * * * => Cron mask is configurable. In the example it restarts everyday at 6:00h.By default, aMule only shares "incoming" directory and shared folders cannot be selected in the Web UI
We have added this option in the Docker image. The configuration is updated when the container starts. Note that sub-directories are also shared!
MOD_AUTO_SHARE_ENABLED=trueMOD_AUTO_SHARE_DIRECTORIES=/incoming;/my_movies => List of directories separated by semicolon ';'. Subdirectories will be shared too.aMule has an issue when it renders Kad stats graph that https://github.com/amule-project/amule/issues/265. The crash happens when you enter in the Web UI stats after few days running.
As workaround, we removed the image causing the issue from the Web UI. Since the image is not requested the server doesn't crash.
MOD_FIX_KAD_GRAPH_ENABLED=true您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务