
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这段话即可:
请先阅读并遵守:https://xuanyuan.cloud/agents.md
未读文档前不要生成 pull 命令或排错方案。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Dockerfile to create a https://www.docker.com/ container image consisting of the following web browsers:
The image uses http://www.x.org and http://www.freedesktop.org/wiki/Software/PulseAudio/ unix domain sockets on the host to enable audio/video support in the web browsers. These components are available out of the box on pretty much any modern linux distribution.
If you find this image useful here's how you can help:
Before reporting your issue please try updating Docker to the latest version and check if it resolves the issue. Refer to the Docker https://docs.docker.com/installation for instructions.
SELinux users should try disabling SELinux using the command setenforce 0 to see if it resolves the issue.
If the above recommendations do not help then report your issue along with the following information:
docker version and docker info commandsdocker run command or docker-compose.yml used to start the image. Mask out the sensitive bits.Automated builds of the image are available on https://hub.docker.com/r/sameersbn/browser-box and is the recommended method of installation.
Note: Builds are also available on https://quay.io/repository/sameersbn/browser-box
bashdocker pull sameersbn/browser-box:2018.07.21
Alternatively you can build the image yourself.
bashdocker build -t sameersbn/browser-box github.com/sameersbn/docker-browser-box
With the image locally available, install the wrapper scripts using:
bashdocker run -it --rm \ --volume /usr/local/bin:/target \ --env BROWSER_BOX_REPO=sameersbn \ sameersbn/browser-box:2018.07.21 install
If you would the settings for chrome and firefox to persist after each time the browser is launched then you will need to add additional environment variable to the install command. In the example below "username" needs to get replace with your login user name.
bashdocker run -it --rm \ --volume /usr/local/bin:/target \ --env CHROME_USERDATA=/home/username/.chrome \ --env FIREFOX_USERDATA=/home/username/.mozillia \ --env BROWSER_BOX_REPO=sameersbn \ sameersbn/browser-box:2018.07.21 install
This will install wrapper scripts to launch:
chromium-browserfirefoxgoogle-chrome, google-chrome-stabletor-browserNote
If the browser being launched is installed on the the host then the host binary is launched instead of starting a Docker container. To force the launch of a browser in a container use the
browser-bundlescript. For example,browser-bundle firefoxwill launch the Firefox browser inside a Docker container regardless of whether it is installed on the host or not.
The wrapper scripts volume mount the X11 and pulseaudio sockets in the launcher container. The X11 socket allows for the user interface display on the host, while the pulseaudio socket allows for the audio output to be rendered on the host.
To upgrade to newer releases:
bashdocker pull sameersbn/browser-box:2018.07.21
install to make sure the host scripts are updated.bashdocker run -it --rm \ --volume /usr/local/bin:/target \ sameersbn/browser-box:2018.07.21 install
bashdocker run -it --rm \ --volume /usr/local/bin:/target \ sameersbn/browser-box:2018.07.21 uninstall
For debugging and maintenance purposes you may want access the containers shell. If you are using Docker version 1.3.0 or higher you can access a running containers shell by starting bash using docker exec:
bashdocker exec -it browser-box bash
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务