更新文档

This commit is contained in:
Super Manito
2025-07-05 03:52:39 +08:00
parent c38fb97001
commit fa9e70210e
9 changed files with 171 additions and 313 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

@@ -4,51 +4,14 @@ hide:
- footer
---
!!! tip inline end "Widely used by many popular projects and highly praised by the community"
???+ question "Why do you see this notice?"
The script of this project currently mainly serves Simplified Chinese users, but from the very beginning it was defined as a universal mirror switching script, providing many command options for customization, which is also one of the reasons why this project is now available to users of other languages. The script output is currently fixed in Simplified Chinese. With feedback and usage from users of other languages, the script may support Traditional Chinese and English in the future.
The documentation is translated with tools, and some professional terms below may be inaccurate. Corrections are welcome.
## :simple-docker:{style="color: #1d63ed"} Docker Installation & Mirror Switching Script
<table>
<tr>
<td><a href="https://www.debian.org" title="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> Debian</td>
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> Red Hat Enterprise Linux</td>
</tr>
<tr>
<td><a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> Ubuntu</td>
<td><a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> Fedora</td>
</tr>
<tr>
<td><a href="https://www.kali.org" title="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> Kali Linux</td>
<td><a href="https://www.centos.org" title="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.1em"></a> CentOS</td>
</tr>
<tr>
<td><a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.15em"></a> Linux Mint</td>
<td><a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Rocky Linux</td>
</tr>
<tr>
<td><a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> Deepin</td>
<td><a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> AlmaLinux</td>
</tr>
<tr>
<td><a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.1em"></a> Zorin OS</td>
<td><a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> openEuler</td>
</tr>
<tr>
<td><a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> Armbian</td>
<td><a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> OpenCloudOS</td>
</tr>
<tr>
<td><a href="https://www.proxmox.com" title="https://www.proxmox.com" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Proxmox VE</td>
<td><a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> Anolis OS</td>
</tr>
<tr>
<td><a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> Raspberry Pi OS</td>
<td></td>
</tr>
</table>
### One-Click Execution Command
=== "Install"
!!! quote ""
@@ -65,14 +28,14 @@ hide:
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh)
```
=== ":simple-gitee: Gitee (Mirror Repository)"
=== ":simple-gitee: Gitee"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh)
```
> Real-time sync, no delay. Recommended for use in mainland China network environments.
=== ":gitcode: GitCode (Mirror Repository)"
=== ":gitcode: GitCode"
``` bash
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/DockerInstallation.sh)
@@ -112,14 +75,14 @@ hide:
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh) --only-registry
```
=== ":simple-gitee: Gitee (Mirror Repository)"
=== ":simple-gitee: Gitee"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --only-registry
```
> Real-time sync, no delay. Recommended for use in mainland China network environments.
=== ":gitcode: GitCode (Mirror Repository)"
=== ":gitcode: GitCode"
``` bash
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/DockerInstallation.sh) --only-registry
@@ -139,6 +102,9 @@ hide:
```
> Not supported in mainland China network environments.
!!! tip "Docker Compose no longer needs to be installed separately"
Starting from V2, Docker Compose is part of the Docker CLI. The script integrates the installation of this [plugin](https://docs.docker.com/compose/install/linux) by default. Please use the `docker compose` command instead of `docker-compose`.
!!! node "About Software Sources"
@@ -162,10 +128,6 @@ hide:
Note: The specified WEB protocol in the script is only for controlling the `Docker CE` software source. `Docker Registry` always uses the `HTTPS` protocol.
!!! tip "Docker Compose no longer needs to be installed separately"
Starting from V2, Docker Compose is part of the Docker CLI. The script integrates the installation of this [plugin](https://docs.docker.com/compose/install/linux) by default. Please use the `docker compose` command instead of `docker-compose`.
!!! quote "Built-in Registry Mirrors"
@@ -348,7 +310,7 @@ hide:
- #### Pure Mode
This feature is for developers. When enabled, script output is minimized. Recommended for use with other options in non-interactive mode.
This feature is introduced to facilitate developers. After it is enabled, the script content output will be simplified. It is recommended to use it with other command options without interaction.
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --pure-mode
@@ -356,28 +318,36 @@ hide:
!!! tip "Scrolling command logs may have unpredictable display issues, but no problems have been found so far."
- ### About Service Startup Errors
- ### FAQ
!!! quote ""
- #### About Service Startup Errors
In non-fresh environments, you may encounter `Docker` service startup failures after running the script. It is recommended to reinstall to resolve this. Uninstalling will not delete local images or container data.
!!! quote ""
Uninstall commands:
In non-fresh environments, you may encounter `Docker` service startup failures after running the script. It is recommended to reinstall to resolve this. Uninstalling will not delete local images or container data.
=== "Debian-based"
Uninstall commands:
``` bash
apt-get remove -y docker* containerd.io runc && apt-get autoremove
```
=== "Debian-based"
> `Debian` &nbsp; `Ubuntu` &nbsp; `Kali` &nbsp; `Linux Mint` &nbsp; `Deepin` &nbsp; `Zorin OS` &nbsp; `Armbian` &nbsp; `Proxmox VE` &nbsp; `Raspberry Pi OS`
``` bash
apt-get remove -y docker* containerd.io runc && apt-get autoremove
```
=== "RedHat-based / openEuler / OpenCloudOS / Anolis OS"
> `Debian` &nbsp; `Ubuntu` &nbsp; `Kali` &nbsp; `Linux Mint` &nbsp; `Deepin` &nbsp; `Zorin OS` &nbsp; `Armbian` &nbsp; `Proxmox VE` &nbsp; `Raspberry Pi OS`
``` bash
yum remove -y docker* containerd.io podman* runc
```
=== "RedHat-based / openEuler / OpenCloudOS / Anolis OS"
> `Red Hat Enterprise Linux` &nbsp; `CentOS` &nbsp; `Rocky Linux` &nbsp; `AlmaLinux` &nbsp; `Fedora` &nbsp; `openEuler` &nbsp; `OpenCloudOS` &nbsp; `Anolis OS`
``` bash
yum remove -y docker* containerd.io podman* runc
```
After uninstalling, simply rerun the script to install.
> `Red Hat Enterprise Linux` &nbsp; `CentOS` &nbsp; `Rocky Linux` &nbsp; `AlmaLinux` &nbsp; `Fedora` &nbsp; `openEuler` &nbsp; `OpenCloudOS` &nbsp; `Anolis OS`
After uninstalling, simply rerun the script to install.
- #### About unsupported operating systems
If it prompts that it is not supported, please use the system's own package management tool to install it. Because these packages are built and maintained by the Linux distribution's package maintainers and may have differences in configuration or are built from modified source code.
You can also use [Docker Desktop](https://www.docker.com/products/docker-desktop)

View File

@@ -4,51 +4,8 @@ hide:
- footer
---
!!! tip inline end "已被众多流行项目使用,广受社区用户好评"
## :simple-docker:{style="color: #1d63ed"} Docker 安装与换源脚本
<table>
<tr>
<td><a href="https://www.debian.org" title="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> Debian</td>
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> Red Hat Enterprise Linux</td>
</tr>
<tr>
<td><a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> Ubuntu</td>
<td><a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> Fedora</td>
</tr>
<tr>
<td><a href="https://www.kali.org" title="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> Kali Linux</td>
<td><a href="https://www.centos.org" title="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.1em"></a> CentOS</td>
</tr>
<tr>
<td><a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.15em"></a> Linux Mint</td>
<td><a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Rocky Linux</td>
</tr>
<tr>
<td><a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> Deepin深度</td>
<td><a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> AlmaLinux</td>
</tr>
<tr>
<td><a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.1em"></a> Zorin OS</td>
<td><a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> openEuler开源欧拉</td>
</tr>
<tr>
<td><a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> Armbian</td>
<td><a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> OpenCloudOS鸥栖</td>
</tr>
<tr>
<td><a href="https://www.proxmox.com" title="https://www.proxmox.com" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Proxmox VE</td>
<td><a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> Anolis OS龙蜥</td>
</tr>
<tr>
<td><a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> Raspberry Pi OS</td>
<td></td>
</tr>
</table>
### 一键执行命令
=== "安装"
!!! quote ""
@@ -139,6 +96,25 @@ hide:
```
> 不支持在国内网络环境下使用
<div class="grid cards" markdown>
- :material-star-four-points-outline:{ .lg .middle } __可完全替代官方安装脚本__
---
与 [get.docker.com](https://get.docker.com) 逻辑一致,融合了本项目换源架构以及特性
- :material-thumb-up-outline:{ .lg .middle } __已被众多流行项目使用__
---
经过数年的技术沉淀与生产验证,广受社区好评,深得开发者喜爱
</div>
!!! tip "Docker Compose 不再需要独立安装"
Docker Compose 自 V2 版本起开始作为 Docker CLI命令行的一部分脚本默认集成安装该[插件](https://docs.docker.com/compose/install/linux),请使用 `docker compose` 命令替代 `docker-compose`
!!! node "软件源说明"
@@ -162,10 +138,6 @@ hide:
注:脚本内的指定 WEB 协议交互仅用于控制 `Docker CE` 软件源,`Docker Registry` 强制使用 `HTTPS` 协议
!!! tip "Docker Compose 不再需要独立安装"
Docker Compose 自 V2 版本起开始作为 Docker CLI命令行的一部分脚本默认集成安装该[插件](https://docs.docker.com/compose/install/linux),请使用 `docker compose` 命令替代 `docker-compose`
!!! quote "内置的镜像仓库源"
@@ -368,7 +340,7 @@ hide:
- #### 纯净模式
为了便于开发人员使用所推出的功能,启用后会精简脚本内容输出,建议搭配其它命令选项无交互使用
推出该功能是为了便于开发人员使用,启用后会精简脚本内容输出,建议搭配其它命令选项无交互使用
``` bash
bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --pure-mode
@@ -376,28 +348,36 @@ hide:
!!! tip "滚动输出的命令日志可能存在无法预料的显示问题,不过目前暂未发现异常"
- ### 关于服务报错无法启动
- ### 常见问题
!!! quote ""
- #### 关于服务报错无法启动
非新装环境可能会在运行脚本后遇到 `Docker` 服务无法启动的情况,建议重新安装来解决,卸载不会删除本地镜像和容器数据
!!! quote ""
卸载命令如下:
非新装环境可能会在运行脚本后遇到 `Docker` 服务无法启动的情况,建议重新安装来解决,卸载不会删除本地镜像和容器数据
=== "Debian 系"
卸载命令如下:
``` bash
apt-get remove -y docker* containerd.io runc && apt-get autoremove
```
=== "Debian 系"
> `Debian` &nbsp; `Ubuntu` &nbsp; `Kali` &nbsp; `Linux Mint` &nbsp; `Deepin` &nbsp; `Zorin OS` &nbsp; `Armbian` &nbsp; `Proxmox VE` &nbsp; `Raspberry Pi OS`
``` bash
apt-get remove -y docker* containerd.io runc && apt-get autoremove
```
=== "RedHat 系 / openEuler / OpenCloudOS / Anolis OS"
> `Debian` &nbsp; `Ubuntu` &nbsp; `Kali` &nbsp; `Linux Mint` &nbsp; `Deepin` &nbsp; `Zorin OS` &nbsp; `Armbian` &nbsp; `Proxmox VE` &nbsp; `Raspberry Pi OS`
``` bash
yum remove -y docker* containerd.io podman* runc
```
=== "RedHat 系 / openEuler / OpenCloudOS / Anolis OS"
> `Red Hat Enterprise Linux` &nbsp; `CentOS` &nbsp; `Rocky Linux` &nbsp; `AlmaLinux` &nbsp; `Fedora` &nbsp; `openEuler` &nbsp; `OpenCloudOS` &nbsp; `Anolis OS`
``` bash
yum remove -y docker* containerd.io podman* runc
```
卸载完成后重新执行脚本安装即可
> `Red Hat Enterprise Linux` &nbsp; `CentOS` &nbsp; `Rocky Linux` &nbsp; `AlmaLinux` &nbsp; `Fedora` &nbsp; `openEuler` &nbsp; `OpenCloudOS` &nbsp; `Anolis OS`
卸载完成后重新执行脚本安装即可
- #### 关于不支持的操作系统
如果提示不支持那么请使用系统自带的包管理工具进行安装。因为这些软件包由 Linux 发行版的软件包维护者构建和维护,可能存在配置差异或由修改后的源代码构建。
也可以使用 [Docker Desktop](https://www.docker.com/products/docker-desktop)

View File

@@ -10,51 +10,8 @@ hide:
文檔使用工具進行翻譯,下方內容中的專業術語可能存在不準確的情況,歡迎修正。
!!! tip inline end "已被眾多熱門項目使用,廣受社群用戶好評"
## :simple-docker:{style="color: #1d63ed"} Docker 安裝與換源腳本
<table>
<tr>
<td><a href="https://www.debian.org" title="https://www.debian.org" target="_blank"><img src="/assets/images/icon/debian.svg" width="16" height="16" style="vertical-align: -0.35em"></a> Debian</td>
<td><a href="https://access.redhat.com/products/red-hat-enterprise-linux" title="https://access.redhat.com/products/red-hat-enterprise-linux" target="_blank"><img src="/assets/images/icon/redhat.svg" width="16" height="16" style="vertical-align: -0.1em"></a> Red Hat Enterprise Linux</td>
</tr>
<tr>
<td><a href="https://ubuntu.com" title="https://ubuntu.com" target="_blank"><img src="/assets/images/icon/ubuntu.svg" width="16" height="16" style="vertical-align: -0.15em"></a> Ubuntu</td>
<td><a href="https://fedoraproject.org" title="https://fedoraproject.org" target="_blank"><img src="/assets/images/icon/fedora.ico" width="16" height="16" style="vertical-align: -0.15em"></a> Fedora</td>
</tr>
<tr>
<td><a href="https://www.kali.org" title="https://www.kali.org" target="_blank"><img src="/assets/images/icon/kali-linux.svg" width="16" height="16"></a> Kali Linux</td>
<td><a href="https://www.centos.org" title="https://www.centos.org" target="_blank"><img src="/assets/images/icon/centos.svg" width="16" height="16" style="vertical-align: -0.1em"></a> CentOS</td>
</tr>
<tr>
<td><a href="https://linuxmint.com" title="https://linuxmint.com" target="_blank"><img src="/assets/images/icon/linux-mint.ico" width="16" height="16" style="vertical-align: -0.15em"></a> Linux Mint</td>
<td><a href="https://rockylinux.org" title="https://rockylinux.org" target="_blank"><img src="/assets/images/icon/rocky-linux.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Rocky Linux</td>
</tr>
<tr>
<td><a href="https://www.deepin.org" title="https://www.deepin.org" target="_blank"><img src="/assets/images/icon/deepin.png" width="16" height="16" style="vertical-align: -0.2em"></a> Deepin</td>
<td><a href="https://almalinux.org" title="https://almalinux.org" target="_blank"><img src="/assets/images/icon/almalinux.svg" width="16" height="16" style="vertical-align: -0.15em"></a> AlmaLinux</td>
</tr>
<tr>
<td><a href="https://zorin.com/os" title="https://zorin.com/os" target="_blank"><img src="/assets/images/icon/zorin-os.png" width="16" height="16" style="vertical-align: -0.1em"></a> Zorin OS</td>
<td><a href="https://www.openeuler.org/zh" title="https://www.openeuler.org/zh" target="_blank"><img src="/assets/images/icon/openeuler.ico" width="16" height="16" style="vertical-align: -0.2em"></a> openEuler</td>
</tr>
<tr>
<td><a href="https://www.armbian.com" title="https://www.armbian.com" target="_blank"><img src="/assets/images/icon/armbian.png" width="16" height="16" style="vertical-align: -0.2em"></a> Armbian</td>
<td><a href="https://www.opencloudos.org" title="https://www.opencloudos.org" target="_blank"><img src="/assets/images/icon/opencloudos.png" width="16" height="16" style="vertical-align: -0.25em"></a> OpenCloudOS</td>
</tr>
<tr>
<td><a href="https://www.proxmox.com" title="https://www.proxmox.com" target="_blank"><img src="/assets/images/icon/proxmox.svg" width="16" height="16" style="vertical-align: -0.2em"></a> Proxmox VE</td>
<td><a href="https://openanolis.cn" title="https://openanolis.cn" target="_blank"><img src="/assets/images/icon/anolis.png" width="16" height="16" style="vertical-align: -0.1em"></a> Anolis OS</td>
</tr>
<tr>
<td><a href="https://www.raspberrypi.com/software" title="https://www.raspberrypi.com/software" target="_blank"><img src="/assets/images/icon/raspberry-pi.png" width="16" height="16" style="vertical-align: -0.2em"></a> Raspberry Pi OS</td>
<td></td>
</tr>
</table>
### 一鍵執行命令
=== "安裝"
!!! quote ""
@@ -100,7 +57,7 @@ hide:
整合安裝 [`Docker Engine`](https://docs.docker.com/engine) 和 [`Docker Compose`](https://docs.docker.com/compose),支援選擇或更換軟體源以及映像倉庫、安裝指定版本、重裝等功能,支援 ARM 架構
腳本參考[官方文件](https://docs.docker.com/engine/install)使用系統套件管理工具進行安裝,不存在相容性、安全性等問題,可安裝的版本由 Docker CE 倉庫決定
腳本參考[官方文件](https://docs.docker.com/engine/install)使用系統套件管理工具進行安裝,不存在相容性、安全性等問題,可安裝的版本由 Docker CE 倉庫決定
=== "僅更換鏡像加速器"
@@ -145,6 +102,25 @@ hide:
```
> 不支援在中國大陸網路環境下使用
<div class="grid cards" markdown>
- :material-star-four-points-outline:{ .lg .middle } __可完全取代官方安裝腳本__
---
與 [get.docker.com](https://get.docker.com) 邏輯一致,融合了本項目換源架構以及特性
- :material-thumb-up-outline:{ .lg .middle } __已被許多流行項目使用__
---
經過數年的技術沉澱與生產驗證,廣受社區好評,深得開發者喜愛
</div>
!!! tip "Docker Compose 不再需要獨立安裝"
Docker Compose 自 V2 版本起開始作為 Docker CLI命令列的一部分腳本預設整合安裝該[插件](https://docs.docker.com/compose/install/linux),請使用 `docker compose` 指令取代 `docker-compose`
!!! node "軟體源說明"
@@ -168,10 +144,6 @@ hide:
註:腳本內的指定 WEB 協議互動僅用於控制 `Docker CE` 軟體源,`Docker Registry` 強制使用 `HTTPS` 協議
!!! tip "Docker Compose 不再需要獨立安裝"
Docker Compose 自 V2 版本起開始作為 Docker CLI命令列的一部分腳本預設整合安裝該[插件](https://docs.docker.com/compose/install/linux),請使用 `docker compose` 指令取代 `docker-compose`
!!! quote "預設的鏡像倉庫源"
@@ -362,28 +334,36 @@ hide:
!!! tip "滾動輸出的命令日誌可能有無法預料的顯示問題,不過目前暫未發現異常"
- ### 關於服務報錯無法啟動
- ### 常見問題
!!! quote ""
- #### 關於服務報錯無法啟動
非新裝環境可能會在執行腳本後遇到 `Docker` 服務無法啟動的情況,建議重新安裝來解決,卸載不會刪除本機映像和容器數據
!!! quote ""
卸載指令如下:
非新裝環境可能會在執行腳本後遇到 `Docker` 服務無法啟動的情況,建議重新安裝來解決,卸載不會刪除本機映像和容器數據
=== "Debian 系"
卸載指令如下:
``` bash
apt-get remove -y docker* containerd.io runc && apt-get autoremove
```
=== "Debian 系"
> `Debian` &nbsp; `Ubuntu` &nbsp; `Kali` &nbsp; `Linux Mint` &nbsp; `Deepin` &nbsp; `Zorin OS` &nbsp; `Armbian` &nbsp; `Proxmox VE` &nbsp; `Raspberry Pi OS`
``` bash
apt-get remove -y docker* containerd.io runc && apt-get autoremove
```
=== "RedHat 系 / openEuler / OpenCloudOS / Anolis OS"
> `Debian` &nbsp; `Ubuntu` &nbsp; `Kali` &nbsp; `Linux Mint` &nbsp; `Deepin` &nbsp; `Zorin OS` &nbsp; `Armbian` &nbsp; `Proxmox VE` &nbsp; `Raspberry Pi OS`
``` bash
yum remove -y docker* containerd.io podman* runc
```
=== "RedHat 系 / openEuler / OpenCloudOS / Anolis OS"
> `Red Hat Enterprise Linux` &nbsp; `CentOS` &nbsp; `Rocky Linux` &nbsp; `AlmaLinux` &nbsp; `Fedora` &nbsp; `openEuler` &nbsp; `OpenCloudOS` &nbsp; `Anolis OS`
``` bash
yum remove -y docker* containerd.io podman* runc
```
卸載完成後重新執行腳本安裝即可
> `Red Hat Enterprise Linux` &nbsp; `CentOS` &nbsp; `Rocky Linux` &nbsp; `AlmaLinux` &nbsp; `Fedora` &nbsp; `openEuler` &nbsp; `OpenCloudOS` &nbsp; `Anolis OS`
卸載完成後重新執行腳本安裝即可
- #### 關於不支援的作業系統
如果提示不支援那麼請使用系統自備的套件管理工具進行安裝。因為這些軟體包由 Linux 發行版的軟體包維護者建構和維護,可能存在配置差異或由修改後的原始碼建構。
也可以使用 [Docker Desktop](https://www.docker.com/products/docker-desktop)

View File

@@ -1,8 +1,8 @@
{% extends "base.html" %}
{% block scripts %}
<script type="module" src="https://cdn.jsdelivr.net/npm/@orama/wc-components@latest/dist/orama-ui/orama-ui.esm.js"></script>
<script nomodule src="https://cdn.jsdelivr.net/npm/@orama/wc-components@latest/dist/cjs/orama-ui.cjs.js"></script>
<script type="module" src="https://unpkg.com/@orama/wc-components@latest/dist/orama-ui/orama-ui.esm.js"></script>
<script nomodule src="https://unpkg.com/@orama/wc-components@latest/dist/cjs/orama-ui.cjs.js"></script>
{{ super() }}
{% endblock %}

View File

@@ -10,7 +10,7 @@ hide:
The documentation is translated with tools, and some professional terms below may be inaccurate. Corrections are welcome.
## One-Click Execution Command
## One-Click Command
=== ":material-home-city: Mainland China"
@@ -28,14 +28,14 @@ hide:
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh)
```
=== ":simple-gitee: Gitee (Mirror Repository)"
=== ":simple-gitee: Gitee"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
```
> Real-time sync, no delay. Recommended for use in mainland China network environments.
=== ":gitcode: GitCode (Mirror Repository)"
=== ":gitcode: GitCode"
``` bash
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh)
@@ -62,55 +62,43 @@ hide:
=== ":linuxmirrors: Official Site (Recommended)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad # (1)!
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad
```
1. Use the `--abroad` command option to use overseas mirrors
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --abroad # (1)!
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --abroad
```
1. Use the `--abroad` command option to use overseas mirrors
=== ":simple-gitee: Gitee (Mirror Repository)"
=== ":simple-gitee: Gitee"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad # (1)!
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad
```
1. Use the `--abroad` command option to use overseas mirrors
> Real-time sync, no delay. Recommended for use in mainland China network environments.
=== ":gitcode: GitCode (Mirror Repository)"
=== ":gitcode: GitCode"
``` bash
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad # (1)!
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad
```
1. Use the `--abroad` command option to use overseas mirrors
> This project has joined the GitHub acceleration plan, with a 1-hour sync delay.
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --abroad # (1)!
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --abroad
```
1. Use the `--abroad` command option to use overseas mirrors
=== ":tencent-cloud: Tencent Cloud EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --abroad # (1)!
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --abroad
```
1. Use the `--abroad` command option to use overseas mirrors
> Not supported in mainland China network environments.
=== ":material-library: China Education Network"
@@ -120,55 +108,43 @@ hide:
=== ":linuxmirrors: Official Site (Recommended)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu # (1)!
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu
```
1. Use the `--edu` command option to use China education network mirrors
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --edu # (1)!
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --edu
```
1. Use the `--edu` command option to use China education network mirrors
=== ":simple-gitee: Gitee (Mirror Repository)"
=== ":simple-gitee: Gitee"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu # (1)!
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu
```
1. Use the `--edu` command option to use China education network mirrors
> Real-time sync, no delay. Recommended for use in mainland China network environments.
=== ":gitcode: GitCode (Mirror Repository)"
=== ":gitcode: GitCode"
``` bash
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu # (1)!
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu
```
1. Use the `--edu` command option to use China education network mirrors
> This project has joined the GitHub acceleration plan, with a 1-hour sync delay.
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --edu # (1)!
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --edu
```
1. Use the `--edu` command option to use China education network mirrors
=== ":tencent-cloud: Tencent Cloud EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --edu # (1)!
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --edu
```
1. Use the `--edu` command option to use China education network mirrors
> Not supported in mainland China network environments.
@@ -678,7 +654,7 @@ Below are some advanced usage examples
- ### Pure mode
For developers: when enabled, script output is minimized. Recommended for use with other options in non-interactive mode.
This feature is introduced to facilitate developers. After it is enabled, the script content output will be simplified. It is recommended to use it with other command options without interaction.
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --pure-mode

View File

@@ -56,55 +56,43 @@ hide:
=== ":linuxmirrors: 官网 (推荐)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad # (1)!
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad
```
1. 通过 `--abroad` 命令选项来使用海外软件源
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --abroad # (1)!
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --abroad
```
1. 通过 `--abroad` 命令选项来使用海外软件源
=== ":simple-gitee: Gitee 码云 (镜像仓库)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad # (1)!
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad
```
1. 通过 `--abroad` 命令选项来使用海外软件源
> 实时同步、无延迟,国内网络环境下推荐使用
=== ":gitcode: GitCode (镜像仓库)"
``` bash
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad # (1)!
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad
```
1. 通过 `--abroad` 命令选项来使用海外软件源
> 本项目已加入 GitHub 加速计划同步存在1小时延迟
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --abroad # (1)!
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --abroad
```
1. 通过 `--abroad` 命令选项来使用海外软件源
=== ":tencent-cloud: 腾讯云 EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --abroad # (1)!
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --abroad
```
1. 通过 `--abroad` 命令选项来使用海外软件源
> 不支持在国内网络环境下使用
=== ":material-library: 中国大陆教育网"
@@ -114,55 +102,43 @@ hide:
=== ":linuxmirrors: 官网 (推荐)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu # (1)!
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu
```
1. 通过 `--edu` 命令选项来使用中国大陆教育单位软件源
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --edu # (1)!
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --edu
```
1. 通过 `--edu` 命令选项来使用中国大陆教育单位软件源
=== ":simple-gitee: Gitee 码云 (镜像仓库)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu # (1)!
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu
```
1. 通过 `--edu` 命令选项来使用中国大陆教育单位软件源
> 实时同步、无延迟,国内网络环境下推荐使用
=== ":gitcode: GitCode (镜像仓库)"
``` bash
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu # (1)!
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu
```
1. 通过 `--edu` 命令选项来使用中国大陆教育单位软件源
> 本项目已加入 GitHub 加速计划同步存在1小时延迟
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --edu # (1)!
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --edu
```
1. 通过 `--edu` 命令选项来使用中国大陆教育单位软件源
=== ":tencent-cloud: 腾讯云 EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --edu # (1)!
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --edu
```
1. 通过 `--edu` 命令选项来使用中国大陆教育单位软件源
> 不支持在国内网络环境下使用
@@ -708,7 +684,7 @@ $ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
- ### 纯净模式
为了便于开发人员使用所推出的功能,启用后会精简脚本内容输出,建议搭配其它命令选项无交互使用
推出该功能是为了便于开发人员使用,启用后会精简脚本内容输出,建议搭配其它命令选项无交互使用
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --pure-mode

View File

@@ -62,55 +62,43 @@ hide:
=== ":linuxmirrors: 官網 (推薦)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad # (1)!
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad
```
1. 透過 `--abroad` 命令選項來使用海外軟體源
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --abroad # (1)!
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --abroad
```
1. 透過 `--abroad` 命令選項來使用海外軟體源
=== ":simple-gitee: Gitee 码云 (鏡像倉庫)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad # (1)!
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad
```
1. 透過 `--abroad` 命令選項來使用海外軟體源
> 即時同步、無延遲,中國大陸網路環境建議使用
=== ":gitcode: GitCode (鏡像倉庫)"
``` bash
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad # (1)!
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad
```
1. 透過 `--abroad` 命令選項來使用海外軟體源
> 本項目已加入 GitHub 加速計劃同步存在1小時延遲
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --abroad # (1)!
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --abroad
```
1. 透過 `--abroad` 命令選項來使用海外軟體源
=== ":tencent-cloud: 騰訊雲 EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --abroad # (1)!
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --abroad
```
1. 透過 `--abroad` 命令選項來使用海外軟體源
> 不支援在中國大陸網路環境下使用
=== ":material-library: 中國大陸教育網"
@@ -120,55 +108,43 @@ hide:
=== ":linuxmirrors: 官網 (推薦)"
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu # (1)!
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu
```
1. 透過 `--edu` 命令選項來使用中國大陸教育單位軟體源
=== ":simple-github: GitHub"
``` bash
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --edu # (1)!
bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh) --edu
```
1. 透過 `--edu` 命令選項來使用中國大陸教育單位軟體源
=== ":simple-gitee: Gitee 码云 (鏡像倉庫)"
``` bash
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu # (1)!
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu
```
1. 透過 `--edu` 命令選項來使用中國大陸教育單位軟體源
> 即時同步、無延遲,中國大陸網路環境建議使用
=== ":gitcode: GitCode (鏡像倉庫)"
``` bash
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu # (1)!
bash <(curl -sSL https://raw.gitcode.com/gh_mirrors/li/LinuxMirrors/raw/main/ChangeMirrors.sh) --edu
```
1. 透過 `--edu` 命令選項來使用中國大陸教育單位軟體源
> 本項目已加入 GitHub 加速計劃同步存在1小時延遲
=== ":simple-jsdelivr: jsDelivr (CDN)"
``` bash
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --edu # (1)!
bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/ChangeMirrors.sh) --edu
```
1. 透過 `--edu` 命令選項來使用中國大陸教育單位軟體源
=== ":tencent-cloud: 騰訊雲 EO (CDN)"
``` bash
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --edu # (1)!
bash <(curl -sSL https://edgeone.linuxmirrors.cn/main.sh) --edu
```
1. 透過 `--edu` 命令選項來使用中國大陸教育單位軟體源
> 不支援在中國大陸網路環境下使用
@@ -678,7 +654,7 @@ hide:
- ### 純淨模式
為了方便開發人員使用所推出的功能,啟用後會精簡腳本內容輸出,建議搭配其它令選項無互動使用
推出此功能是為了方便開發人員使用,啟用後會精簡腳本內容輸出,建議搭配其它令選項無互動使用
``` bash
bash <(curl -sSL https://linuxmirrors.cn/main.sh) --pure-mode

View File

@@ -1,4 +1,4 @@
mkdocs-material==9.6.14
mkdocs-material==9.6.15
mkdocs-glightbox==0.4.0
mkdocs-exclude-search==0.6.6
# mkdocs-minify-plugin==0.8.0