
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Airsonic-Advanced Docker镜像是官方提供的容器化部署方案。Airsonic-Advanced是一款免费的基于Web的媒体流服务器,旨在提供对音乐的无处不在的访问。它是Airsonic分支的现代化实现,通过多项关键性能优化和功能增强,添加并取代了Airsonic的部分功能。
项目地址:https://github.com/airsonic-advanced/airsonic-advanced
latest: 最新发布版(稳定版或边缘版)[推荐使用]edge-latest: 最新快照版stable: 最新稳定版_x_: 主要版本x下的最新稳定版(例如10可能对应v10.6.0)_x.y_: 主要版本x和次要版本y下的最新稳定版(例如10.6可能对应v10.6.0)_x.y.z_: 指定的补丁版本(例如10.6.0对应v10.6.0)stable-x.y.z: 与上述_x.y.z_相同gitcommit-sha: 特定SHA提交的版本gitrun-id: 按gitrun标记的版本自提交44c240ad3fe3(对应镜像如edge-10.6.0-SNAPSHOT.20200303042240、travisbuild-374、gitcommit-587b4be2e66d7fad839de218969fe0cc8c35508c)之后,Docker挂载点与原版Airsonic不同。在此之前(含这些构建),挂载点与原版Airsonic相同。
默认情况下,镜像以root用户(uid 0)和root组(gid 0)运行。自提交6c9a7c2891(对应镜像如edge-11.0.0-SNAPSHOT.20200430182823、gitcommit-6c9a7c28918355bc508c8e07fa8ee8475ff87ef3、gitrun-92425995)起,可通过以下两种方式指定自定义用户:
docker run命令时使用--user(-u)参数,格式为uid:giddocker run命令时通过环境变量PUID和PGID指定(-e PUID=uid -e PGID=gid)bashdocker run \ -d \ -u 1000:1000 \ -e TZ=America/Los_Angeles \ -e JAVA_OPTS=-Dserver.forward-headers-strategy=native \ -p 4040:4040 \ -p 4041:4041 \ -v /host/path/to/my/music:/var/music \ -v /host/path/to/my/podcasts:/var/podcasts \ -v /host/path/to/my/playlists:/var/playlists \ -v /host/path/to/my/data:/var/airsonic \ --restart unless-stopped \ airsonicadvanced/airsonic-advanced:latest
基础配置:
yamlversion: "3" services: airsonic-advanced: container_name: airsonic-advanced image: airsonicadvanced/airsonic-advanced:latest restart: unless-stopped ports: - 4040:4040 - 4041:4041 # UPnP user: pid:gid # 可选 - 指定运行用户 environment: TZ: America/Los_Angeles # 可选 - 日志使用本地时区 JAVA_OPTS: '-Dserver.forward-headers-strategy=native' # 可选 - 若使用反向代理 volumes: - /host/path/to/my/playlists:/var/playlists - /host/path/to/my/podcasts:/var/podcasts - /host/path/to/my/data:/var/airsonic - /host/path/to/my/music:/var/music
yamlversion: "3.9" services: db: image: postgres:latest volumes: - /host/path/to/db/data:/var/lib/postgresql/data environment: POSTGRES_DB: postgres POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres airsonic: image: airsonicadvanced/airsonic-advanced:latest environment: spring_datasource_url: 'jdbc:postgresql://db:5432/postgres?stringtype=unspecified&raiseExceptionOnSilentRollback=false' spring_datasource_username: postgres spring_datasource_password: postgres spring_liquibase_parameters_userTableQuote: '"' volumes: - /host/path/to/my/music:/var/music - /host/path/to/my/podcasts:/var/podcasts - /host/path/to/my/playlists:/var/playlists - /host/path/to/airsonic/data:/var/airsonic ports: - 4040:4040 - 4041:4041 depends_on: - db
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务