
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Classic Swarm has been archived and is no longer actively developed. You may want to use the Swarm mode built into the Docker Engine instead, or another orchestration system.
(https://github.com/docker/classicswarm#readme)
Maintained by:
https://github.com/docker/swarm-library-image
Where to get help:
https://forums.docker.com/, https://dockr.ly/slack, or https://stackoverflow.com/search?tab=newest&q=docker
Dockerfile linksNo supported tags
Where to file issues:
https://github.com/docker/swarm-library-image/issues
Supported architectures: (https://github.com/docker-library/official-images#architectures-other-than-amd64)
No supported architectures
Published image artifact details:
https://github.com/docker-library/repo-info/blob/master/repos/swarm (https://github.com/docker-library/repo-info/commits/master/repos/swarm)
(image metadata, transfer size, etc)
Image updates:
https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Fswarm
https://github.com/docker-library/official-images/blob/master/library/swarm (https://github.com/docker-library/official-images/commits/master/library/swarm)
Source of this description:
https://github.com/docker-library/docs/tree/master/swarm (https://github.com/docker-library/docs/commits/master/swarm)
!https://raw.githubusercontent.com/docker-library/docs/471fa6e4cb58062ccbf91afc***f9c7004981/swarm/logo.png
swarm is a simple tool which controls a cluster of Docker hosts and exposes it as a single "virtual" host.
swarm uses the standard Docker API as its frontend, which means any tool which speaks Docker can control swarm transparently: dokku, docker-compose, krane, flynn, deis, docker-ui, shipyard, drone.io, Jenkins... and of course the Docker client itself.
Like the other Docker projects, swarm follows the "batteries included but removable" principle. It ships with a simple scheduling backend out of the box, and as initial development settles, an API will develop to enable pluggable backends. The goal is to provide a smooth out-of-box experience for simple use cases, and allow swapping in more powerful backends, like Mesos, for large scale production deployments.
bash# create a cluster $ docker run --rm swarm create 6856663cdefdec325839a4b7e1de38e8 # <- this is your unique <cluster_id> # on each of your nodes, start the swarm agent # <node_ip> doesn't have to be public (eg. 192.168.0.X), # as long as the swarm manager can access it. $ docker run -d swarm join --addr=<node_ip:2375> token://<cluster_id> # start the manager on any machine or your laptop $ docker run -t -p <swarm_port>:2375 -t swarm manage token://<cluster_id> # use the regular docker cli $ docker -H tcp://<swarm_ip:swarm_port> info $ docker -H tcp://<swarm_ip:swarm_port> run ... $ docker -H tcp://<swarm_ip:swarm_port> ps $ docker -H tcp://<swarm_ip:swarm_port> logs ... ... # list nodes in your cluster $ docker run --rm swarm list token://<cluster_id> <node_ip:2375>
See https://github.com/docker/swarm/blob/master/discovery/README.md for more information about other discovery services.
See https://github.com/docker/swarm/blob/master/scheduler/filter/README.md and https://github.com/docker/swarm/blob/master/scheduler/strategy/README.md to learn more about advanced scheduling.
Swarm supports TLS authentication between the CLI and Swarm but also between Swarm and the Docker nodes.
In order to enable TLS, the same command line options as Docker can be specified:
swarm manage --tlsverify --tlscacert=<CACERT> --tlscert=<CERT> --tlskey=<KEY> [...]
Please refer to the https://docs.docker.com/articles/https/ for more information on how to set up TLS authentication on Docker and generating the certificates.
Note that Swarm certificates must be generated with extendedKeyUsage = clientAuth,serverAuth.
View https://github.com/docker/swarm/blob/master/LICENSE.code 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/swarm.
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.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 swarm 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: