
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
This is a repository with various applications written in Go and compiled statically in Docker.
These are compiled statically to only provide the bare minimum files within the final Docker image, thus keeping the final build size down and resulting in a more secure Docker container.
dec-decode - A iso.dec decoder, which implements the NASOS method of decoding .iso.dec files back into plain .iso files. Source: https://github.com/sammiq/dec-decodedive - A tool for exploring a docker image, layer contents, and discovering ways to shrink the size of your Docker/OCI image. Source: https://github.com/wagoodman/divedocker-webui - A web interface for Docker, providing various functions for reviewing and controlling containers. Source: https://github.com/hajimeo/docker-webuilazydocker - A simple terminal UI for both docker and docker-compose. Source: https://github.com/jesseduffield/lazydockerpasta - Paste***-like web-server. Source: https://github.com/starius/pastareg - Docker registry v2 command line client and repo listing generator with security checks. Source: https://github.com/genuinetools/regskopeo - Work with remote images registries - retrieving information, images, signing content. Source: https://github.com/containers/skopeowebproc - Wrap any program in a simple web-based user-interface. Source: https://github.com/jpil***/webprocwhaler - Tool designed to reverse engineer docker images into the Dockerfile that created it. Source: https://github.com/P3GLEG/WhalerPlease review the documentation listed on the source pages for usage of the above applications.
Below are various examples for the above applications. I will try to keep this list updated as more items are added.
The following example ***d mounts a folder from the host to inside the container and procedes to supply a file to decode. Remember to provide the folder path/name as it is mounted within the container.
shdocker run --rm -it \ -v /my-folder/:/images/ \ macgyverbass/dec-decode \ /images/test.dec
The following example ***d mounts the docker.sock file from the host and uses "alpine:latest" as the image to review.
shdocker run --rm -it \ -v /var/run/docker.sock:/var/run/docker.sock \ macgyverbass/dive \ alpine:latest
The following example ***d mounts the docker.sock file from the host and forwards port 9000 to the host.
shdocker run --rm -it \ -v /var/run/docker.sock:/var/run/docker.sock \ -p 9000:9000/tcp \ macgyverbass/docker-webui
The following example ***d mounts the docker.sock file from the host and procedes to execute lazydocker. Note that the application will ask if you want to enable anonymous reporting data to help improve lazydocker each time the Docker container is started.
shdocker run --rm -it \ -v /var/run/docker.sock:/var/run/docker.sock \ macgyverbass/lazydocker
The following example ***d mounts a folder from the host to inside the container for storing the data files and with port 8042 forwarded to the host. Note that when you launch pasta, it will ask for a secret (e.g. "adam bravo charlie david edward frank george henry ida john king lincoln" - note that this is just an example) - if you want to generate a secret using pasta, you can pass -gen-secret as also shown in the next example further below.
shdocker run --rm -it \ -v /my-folder/:/db/ \ -p 8042:8042/tcp \ macgyverbass/pasta
As mentioned before, pasta can generate a secret phrase for you using the below command. (The output text can then be stored in a file for use with the -secret-file argument shown in the next example further below.)
shdocker run --rm -it \ macgyverbass/pasta \ -gen-secret
Additionally, a text file (/my-folder/secret.txt in this example) with a secret phrase may be loaded using the -secret-file argument as shown below: (Note that, for simplicity, the text file is located in the same host folder as the data files, but it can also be stored elsewhere and mounted within the container, with the new mounted location passed accordingly.) This will allow the ***ary to launch without user input at startup.
shdocker run --rm -it \ -v /my-folder/:/db/ \ -p 8042:8042/tcp \ macgyverbass/pasta \ -secret-file /db/secret.txt
The following example runs reg with the command tags for the image alpine. Many other commands are available, so please review the official https://github.com/genuinetools/reg#usage for more commands/options and examples.
shdocker run --rm -it \ macgyverbass/reg \ tag alpine
The following example runs skopeo with the inspect argument to show properties of fedora:latest. (This example is based upon the example from the official https://github.com/containers/skopeo#show-properties-of-fedoralatest.)
shdocker run --rm -it \ macgyverbass/skopeo \ inspect docker://registry.fedoraproject.org/fedora:latest
The following example ***d mounts the docker.sock file from the host and procedes to execute whaler. Note that, as the program has documented, you may need to add -sV=1.36 to the argument list, as shown below.
shdocker run --rm -it \ -v /var/run/docker.sock:/var/run/docker.sock \ macgyverbass/whaler \ -sV=1.36 golang:alpine
Note that webproc is best used when it is added to another Docker image, as there are no other ***aries within it's own image. For example, you may create a Dockerfile like below using webproc, which will ping 8.8.8.8 (a simple ping to Google DNS 8.8.8.8) using webproc.
DockerfileFROM alpine:latest COPY --from=macgyverbass/webproc:latest /webproc /webproc CMD ["/webproc", "ping", "8.8.8.8"]
And then running the above image ("webproc-test" in this example) from the Dockerfile above with port 8080 forwarded to the host as shown here:
shdocker run --rm -it \ -p 8080:8080/tcp \ webproc-test
In the above example, opening a browser with http://[Your Docker Host IP]:8080/ will display the webpage front-end of webproc and the output of the command being executed with the ability to restart the process. Note that restarting the process from the webpage does not restart the entire container, just the process passed to webproc itself.
Your usage may differ, as the above is just an example of its use.
As noted in the previous section, the Docker images can also be copied into a new image by referencing them in the Dockerfile.
For example, the below Dockerfile example shows how to copy in just the static ***ary dec-decode into your own Docker image to be use for another project. In this way, you don't have to execute the Docker image directly, but instead use the compiled static ***ary within your own image.
DockerfileFROM alpine:latest COPY --from=macgyverbass/dec-decode:latest /dec-decode /dec-decode COPY your-scripts/ /scripts/ CMD ["/scripts/my-script.sh"]
Again, your uses will differ from the above example, but it can be used as a guide for building your own Docker image using the static ***ary.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务