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

serversideup/ansible

serversideup

在任何地方运行Ansible的轻量级且功能强大的Docker镜像。

2 次收藏下载次数: 0状态:社区镜像维护者:serversideup仓库类型:镜像最近更新:2 天前
让 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 官方简介
轩辕镜像中文简介
下载命令
镜像标签列表与下载命令
轩辕镜像,快一点,稳很多。
点击查看

https://github.com/serversideup/docker-ansible/actions/workflows/action_publish-images-production.yml https://github.com/serversideup/docker-ansible/blob/main/LICENSE https://github.com/***/serversideup
https://hub.docker.com/r/serversideup/ansible/https://hub.docker.com/r/serversideup/ansible-core/

Introduction

serversideup/ansible is a lightweight solution for running Ansible in a containerized environment. This project builds upon many things we learned from https://github.com/willhallonline/docker-ansible. It provides a secure and isolated environment for running Ansible tasks, with support for both Alpine and Debian-based distributions and gives you the flexibility to run Ansible as an unprivileged user without the headaches of proper file permissions.

Features

  • 🐧 Debian and Alpine - Choose your OS
  • 🐍 Built on official Python images - Choose your Python version
  • 🔒 Unprivileged user - Choose to run as root or an unprivileged user
  • 📌 Pinned Ansible Version - Set your Ansible version down to the patch version
  • 🔧 Customize your "run as" user - Customize the username to run as
  • 🔑 Set your own PUID and PGID - Have the PUID and PGID match your host user
  • 📦 DockerHub and GitHub Container Registry - Choose where you'd like to pull your image from
  • 🤖 Multi-architecture - Every image ships with x86_64 and arm64 architectures

Usage

Getting started is easy. Here's a few tips on how to use this image.

Choose between ansible and ansible-core

Our images are available on Docker Hub and GitHub Container Registry 🥳

DockerHub:

  • https://hub.docker.com/r/serversideup/ansible
  • https://hub.docker.com/r/serversideup/ansible-core

GitHub Container Registry:

  • https://github.com/serversideup/docker-ansible/pkgs/container/ansible
  • https://github.com/serversideup/docker-ansible/pkgs/container/ansible-core

Versions are made available with ansible and ansible-core. Everything is versioned appropriately according to the https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html.

VariationImage SizeDescription
serversideup/ansible-core
Lightweight, core installation of Ansible.
serversideup/ansible
"Batteries included" installation of Ansible.

Image Tagging System

Our Docker images use a comprehensive tagging system for flexibility and specificity.

Tag Components

ComponentExample
Ansible version2.21.2, 2.21
Base OSalpine3.24, trixie
Python versionpython3.14
OS familyalpine, debian

Tag Examples

TagMeaning
2.21.2-alpine3.24-python3.14Most specific
2.21.2-alpine3.24Latest Python for specific Ansible and OS
2.21.2Latest OS and Python for specific Ansible
2.21-alpine3.24-python3.14Latest patch for Ansible minor version
2.21-alpine-python3.14OS family-based

Run a playbook

[!IMPORTANT]
In almost all cases you will need to mount a volume to the Ansible "working directory" (default: /ansible) and your SSH configurations (usually ~/.ssh).

bash
docker run --rm -it \
  -v "$HOME/.ssh:/ssh" \
  -v "$(pwd):/ansible" \
  serversideup/ansible:latest ansible-playbook playbook.yml

Change the "run as" user, PUID and PGID

bash
docker run --rm -it \
  -v "$HOME/.ssh:/ssh" \
  -v "$(pwd):/ansible" \
  -e PUID=9999 -e PGID=9999 \
  -e RUN_AS_USER=bob \
  serversideup/ansible:latest ansible-playbook playbook.yml

Run a shell

bash
docker run --rm -it \
  -v "$HOME/.ssh:/ssh" \
  -v "$(pwd):/ansible" \
  serversideup/ansible:latest /bin/sh

Working with SSH

[!NOTE]
Working with SSH keys can be tricky, especially if we're setting a RUN_AS_USER dynamically. We created a few things to help reduce the headache of getting this configured.

The /ssh directory

By default, we have a /ssh directory that is symbolically linked from ~/.ssh. The /ssh directory is used as our single source of truth for SSH keys and configurations.

If you set RUN_AS_USER, the entrypoint will create a home directory at /home/${RUN_AS_USER}, then create a symbolic link from /home/${RUN_AS_USER}/.ssh to /ssh. This gives you the power to set your RUN_AS_USER to anything you want without us needing to predict what user you want to run as.

Mounting the SSH auth socket

The SSH auth socket is a Unix socket used by the SSH agent to communicate with other processes, allowing for secure key management. To use it with Docker, you can mount it as follows:

macOS:

bash
docker run --rm -it \
  -v "$HOME/.ssh:/ssh:ro" \
  -v "$HOME/.ssh/known_hosts:/ssh/known_hosts:rw" \
  -v "$(pwd):/ansible" \
  -v "/run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock" \
  -e SSH_AUTH_SOCK="/run/host-services/ssh-auth.sock" \
  serversideup/ansible:latest ansible-playbook playbook.yml

Notice how we're matching the SSH_AUTH_SOCK to the host's socket. This is necessary for the SSH agent to communicate with the container.

Linux:

bash
docker run --rm -it \
  -v "$HOME/.ssh:/ssh:ro" \
 -v "$HOME/.ssh/known_hosts:/ssh/known_hosts:rw" \
  -v "$(pwd):/ansible" \
  -v "$SSH_AUTH_SOCK:$SSH_AUTH_SOCK" \
  -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK" \
  serversideup/ansible:latest ansible-playbook playbook.yml

Environment Variables

You can customize the image easily with the following environment variables:

VariableDefaultDescription
PUID1000Set the User ID that you'd like to run Ansible as
PGID1000Set the Group ID that you'd like to run Ansible as
RUN_AS_USERansibleThe username you'd like to run Ansible as (this will be created for you and will default to an unprivileged user)
DEBUGfalseEnable debug output of container startup

Resources

  • https://hub.docker.com/r/serversideup/ansible to browse the images.
  • ******* for friendly support from the community and the team.
  • https://github.com/serversideup/docker-ansible for source code, bug reports, and project management.
  • Get Professional Help - Get video + screen-sharing help directly from the core contributors.

Contributing

As an open-source project, we strive for transparency and collaboration in our development process. We greatly appreciate any contributions members of our community can provide. Whether you're fixing bugs, proposing features, improving documentation, or spreading awareness - your involvement strengthens the project. Please review our code of conduct to understand how we work together respectfully.

  • Bug Report: If you're experiencing an issue while using these images, please https://github.com/serversideup/docker-ansible/issues/new/choose.
  • Feature Request: Make this project better by https://github.com/serversideup/docker-ansible/discussions/.
  • Documentation: Improve our documentation by submitting a documentation change.
  • Community Support: Help others on https://github.com/serversideup/docker-ansible/discussions or ***.
  • Security Report: Report critical security issues via our responsible disclosure policy.

Need help getting started? Join our *** community and we'll help you out!

Our ***

All of our software is free an open to the world. None of this can be brought to you without the financial backing of our ***.

https://github.com/***/serversideup

Black Level ***

Bronze ***

No bronze *** yet. https://github.com/***/serversideup

Special Infrastructure ***

This project takes an incredible amount of computing power to build and maintain over 8,000 different docker image tags. We're extremely grateful for the following *** who help bring the power to ship more PHP.

  https://hub.docker.com/u/serversideup

Individual Supporters

https://github.com/***/serversideup

About Us

We're Dan and Jay - a two person team with a passion for open source products. We created Server Side Up to help share what we learn.

Dan Pastori
Jay Rogers

https://github.com/danpastori

https://github.com/jaydrogers

Find us at:

  • 📖 Blog - Get the latest guides and free courses on all things web/mobile development.
  • 🙋 Community - Get friendly help from our community members.
  • 🤵‍♂️ Get Professional Help - Get video + screen-sharing support from the core contributors.
  • 💻 https://github.com/serversideup - Check out our other open source projects.
  • 📫 Newsletter - Skip the algorithms and get quality content right to your inbox.
  • **🐥 ***** - You can also follow Dan and Jay.
  • ❤️ https://github.com/***/serversideup - Please *** sponsoring us so we can create more helpful resources.

Our products

If you appreciate this project, be sure to check out our other projects.

📚 Books

  • The Ultimate Guide to Building APIs & SPAs: Build web & mobile apps from the same codebase.
  • Building Multi-Platform Browser Extensions: Ship extensions to all browsers from the same codebase.

🛠️ Software-as-a-Service

  • Bugflow: Get visual bug reports directly in GitHub, GitLab, and more.
  • SelfHost Pro: Connect Stripe or Lemonsqueezy to a private docker registry for self-hosted apps.

🌍 Open Source

  • AmplitudeJS: Open-source HTML5 & JavaScript Web Audio Library.
  • Spin: Laravel Sail alternative for running Docker from development → production.
  • https://github.com/serversideup/financial-***: Open source alternative to Mint, YNAB, & Monarch Money.

更多相关 Docker 镜像与资源

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

  • alpine/ansible Docker 镜像说明(Alpine 精简 Ansible 控制节点,适合自动化运维与配置管理)

镜像拉取方式

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

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

docker pull docker.xuanyuan.run/serversideup/ansible:<标签>

使用方法:

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

DockerHub 原生拉取命令

docker pull serversideup/ansible:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

一键安装

一键安装 Docker

Linux Docker 一键安装

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Apple Container

macOS 原生容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

Unraid

Unraid 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

轻量级集群

面板 / 网络

爱快路由

爱快 4.0 · iKuai 镜像加速

宝塔面板

一键配置镜像源

需要其他帮助?请查看我们的 常见问题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(架构)

docker.sock / daemon

账号

失败是否计费

manifest · blob · 计费

申请开票(企业 / 个人)

开票 · 发票 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

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

用户头像

oldzhang

运维工程师

Linux服务器

5

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

轩辕镜像
镜像详情
...
serversideup/ansible
定价查看流量套餐与价格
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥8/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
用户协议·隐私政策·增值电信业务经营许可证:浙B2-20261007·©2024-2026 源码跳动©2024-2026 杭州源码跳动科技有限公司·商务合作:点击复制邮箱

更多 ansible 镜像推荐

ansible/ansible logo

ansible/ansible

ansible
用于Ansible自动化测试的镜像,不包含Ansible本身,也不面向最终用户。
390 次收藏100万+ 次下载
8 年前更新
alpine/ansible logo

alpine/ansible

Alpine 工具与轻量镜像
在Docker中运行ansible和ansible-playbook
41 次收藏50万+ 次下载
5 天前更新
alpinelinux/ansible logo

alpinelinux/ansible

alpinelinux
Ansible in docker
23 次收藏10万+ 次下载
6 年前更新
librespace/ansible logo

librespace/ansible

librespace
用于配置Libre Space Foundation基础设施的Ansible Docker镜像
3 次收藏5万+ 次下载
7 个月前更新
ansible/centos7-ansible logo

ansible/centos7-ansible

ansible
此镜像已被弃用。原为由Ansible, Inc维护的包含Ansible的基础Docker镜像,用于从Ansible playbook构建容器镜像,支持CentOS 7和Ubuntu 14.04 LTS系统及稳定/开发版Ansible。现社区维护的Ansible镜像可在Dockerhub搜索获取。
137 次收藏100万+ 次下载
9 年前更新
ansible/awx logo

ansible/awx

ansible
Ansible AWX 18.0.0之前版本的官方Docker镜像,用于部署旧版AWX。新版本请访问:https://quay.io/repository/ansible/awx
94 次收藏500万+ 次下载
5 年前更新

查看更多 ansible 相关镜像