- :material-thumb-up-outline:{ .lg .middle } __Easy to Use__
---
Just one command to run directly, zero technical barrier, no dependencies required
Documentation integrates AI search and chat, providing solutions for various use cases
- :material-vector-polyline:{ .lg .middle } __Wide System Support__
---
Supports up to `26+` operating systems, covering various versions, accurately identifying system types
High script compatibility, unsupported systems will prompt and exit without operation
- :material-vector-triangle:{ .lg .middle } __Diverse Mirror Adaptation__
---
In-depth research on domestic mirror site compatibility
Also provides a collection of domestic education network and overseas mirrors for users to choose
- :material-rocket-launch-outline:{ .lg .middle } __Fast and Efficient__
---
Mirror switching can be completed in as little as 10 seconds, efficient operations, saving a lot of time
The project has undergone years of iteration and optimization, with excellent script performance and stability, and comprehensive scenario handling
- :octicons-globe-24:{ .lg .middle } __Global Network, Worry-Free Access__
---
This website provides global edge network acceleration, easily accessible in any network environment
Multiple backup addresses are provided to ensure the script is always available, truly worry-free usage
- :material-arm-flex-outline:{ .lg .middle } __Powerful and Unmatched__
---
The script guides users step by step to select mirror configurations via arrow key interaction, making switching easier
In addition, the script offers rich command options, supporting CI/CD integration and automated operations
- :material-pencil-ruler-outline:{ .lg .middle } __Highly Customizable__
---
Script command options are designed according to formal application standards, meeting various advanced needs
Code structure is clear, easy to read and modify, and supports customization after cloning, supports multi-language printing
- :material-scale-balance:{ .lg .middle } __Free and Open Source__
---
The project is licensed under the MIT open source license, script code is fully open source and free to use
Please respect the author's intellectual achievements, and indicate the source or project address prominently when sharing
| Operating System | Supported Versions |
| --- | :---: |
|

**Debian** | _8~13_ |
|

**Ubuntu** :material-information-outline:{ title="Supports Ubuntu family derivatives, such as
UKylin,
Kubuntu, etc.
Due to rapid iteration, not all non-LTS versions are directly supported. See documentation for details." } | _14~25_ |
|

**Kali Linux** | _all_ |
|

**Linux Mint** | _17~22 / LMDE 2~7_ |
|

**Deepin** | _all_ |
|

**Zorin OS** | _all_ |
|

**Armbian** | _all_ |
|

**Proxmox VE** | _all_ |
|

**Raspberry Pi OS** | _all_ |
|

**Red Hat Enterprise Linux** :material-information-outline:{ title="Uses
CentOS Stream or
CentOS mirrors" } | _7~10_ |
|

**Fedora** | _30~43_ |
|

**CentOS** | _7~8 / Stream 8~10_ |
|

**Rocky Linux** | _8~10_ |
|

**AlmaLinux** | _8~10_ |
|

**Oracle Linux** :material-information-outline:{ title="Uses
CentOS Stream mirrors" } | _8~10_ |
|

**openEuler** | _20~25_ |
|

**OpenCloudOS** | _8.6~9 / Stream 23_ |
|

**openKylin** | _all_ |
|

**Anolis OS** | _8 / 23_ |
|

**openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
|

**Arch Linux** | _all_ |
|

**Manjaro** | _all_ |
|

**EndeavourOS** | _all_ |
|

**Alpine Linux** | _v3 / edge_ |
|

**Gentoo** | _all_ |
|

**NixOS** | _19~25_ |
[Get Started](use/index.md){ .md-button .md-button--primary } [Mirror List](mirrors/index.md){ .md-button }
--8<-- "docs/sponsor/main.html"
================================================
FILE: docs/index.md
================================================
---
title: 一键脚本使换源更简单
description: GNU/Linux 更换系统软件源脚本及 Docker 安装与换源脚本
comments: true
glightbox: false
comments_description: 该评论区仅用于展示项目使用评价和经验分享,反馈问题或建议请前往
- :material-thumb-up-outline:{ .lg .middle } __轻松使用__
---
只需要一行命令就能直接运行,零技术门槛,无需安装任何依赖
文档集成了 AI 搜索与聊天,提供各种使用场景的解决方案
- :material-vector-polyline:{ .lg .middle } __系统支持广泛__
---
已适配高达 `26+` 操作系统,涵盖各类版本,精准识别系统类型
脚本兼容性高,不支持的系统会有相应提示并无操作跳出
- :material-vector-triangle:{ .lg .middle } __多元软件源适配__
---
深入考察了国内镜像站的系统适配情况,专为中国用户打造
还提供全网搜集的国内教育网和海外镜像站供用户选择
- :material-rocket-launch-outline:{ .lg .middle } __快,且高效__
---
最快仅需 10 秒即可完成软件源的更换,高效运维,节省大量时间成本
项目经过数年的迭代与优化,脚本性能卓越运行稳定,场景判断完善
- :octicons-globe-24:{ .lg .middle } __全球网络,调用无忧__
---
本网站提供全球边缘网络加速,不惧各种网络环境,国内轻松访问
同时提供了多个备用地址以确保项目脚本始终可用,真正做到使用无忧
- :material-arm-flex-outline:{ .lg .middle } __功能强大,无与伦比__
---
脚本通过方向键交互逐步引导用户选择软件源配置,使换源更简单
此外脚本提供了丰富的命令选项,支持 CI/CD 集成与自动化运维
- :material-pencil-ruler-outline:{ .lg .middle } __高度可定制__
---
脚本命令选项遵循正式应用程序规范设计,能够满足各种高级需求
代码结构清晰,易于阅读和修改,支持克隆后定制,支持多语言打印
- :material-scale-balance:{ .lg .middle } __自由,开源__
---
项目已设立 MIT 开源许可协议,脚本代码完全开源且免费使用
请尊重作者的知识成果,传播时请在显著位置标注来源或项目地址
| 操作系统 | 适配版本 |
| --- | :---: |
|

**Debian** | _8~13_ |
|

**Ubuntu** :material-information-outline:{ title="支持乌班图家族衍生操作系统,例如
优麒麟 Kubuntu 等
由于迭代速度较快并不直接支持所有非 LTS 的版本,具体详见文档" } | _14~25_ |
|

**Kali Linux** | _all_ |
|

**Linux Mint** | _17~22 / LMDE 2~7_ |
|

**Deepin(深度)** | _all_ |
|

**Zorin OS** | _all_ |
|

**Armbian** | _all_ |
|

**Proxmox VE** | _all_ |
|

**Raspberry Pi OS** | _all_ |
|

**Red Hat Enterprise Linux** :material-information-outline:{ title="使用
CentOS Stream 或
CentOS 源" } | _7~10_ |
|

**Fedora** | _30~43_ |
|

**CentOS** | _7~8 / Stream 8~10_ |
|

**Rocky Linux** | _8~10_ |
|

**AlmaLinux** | _8~10_ |
|

**Oracle Linux** :material-information-outline:{ title="使用
CentOS Stream 源" } | _8~10_ |
|

**openEuler(开源欧拉)** | _20~25_ |
|

**OpenCloudOS(鸥栖)** | _8.6~9 / Stream 23_ |
|

**openKylin(开放麒麟)** | _all_ |
|

**Anolis OS(龙蜥)** | _8 / 23_ |
|

**openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
|

**Arch Linux** | _all_ |
|

**Manjaro** | _all_ |
|

**EndeavourOS** | _all_ |
|

**Alpine Linux** | _v3 / edge_ |
|

**Gentoo** | _all_ |
|

**NixOS** | _19~25_ |
[开 始 使 用](use/index.md){ .md-button .md-button--primary } [软件源列表](mirrors/index.md){ .md-button }
--8<-- "docs/sponsor/main.html"
================================================
FILE: docs/index.zh-Hant.md
================================================
---
title: 一鍵腳本讓換源更簡單
description: GNU/Linux 更換系統軟體源腳本及 Docker 安裝與換源腳本
comments: true
glightbox: false
comments_description: 此評論區僅用於展示專案使用評估和經驗分享,回饋問題或建議請前往
- :material-thumb-up-outline:{ .lg .middle } __輕鬆使用__
---
只需要一行指令就能直接運行,零技術門檻,無需安裝任何依賴
文件整合了 AI 搜尋與聊天,提供各種使用場景的解決方案
- :material-vector-polyline:{ .lg .middle } __系統支援廣泛__
---
已適配高達 `26+` 作業系統,涵蓋各類版本,精準辨識系統類型
腳本相容性高,不支援的系統會有對應提示並無操作跳出
- :material-vector-triangle:{ .lg .middle } __多元軟體源適配__
---
深入考察了中國大陸鏡像站的系統適配狀況,專為國人打造
也提供全網蒐集的國內教育網和海外鏡像站供用戶選擇
- :material-rocket-launch-outline:{ .lg .middle } __快,且高效__
---
最快僅需 10 秒即可完成軟體源的更換,高效能維運,節省大量時間成本
專案經過數年的迭代與最佳化,腳本效能卓越運作穩定,場景判斷完善
- :octicons-globe-24:{ .lg .middle } __全球網絡,執行無憂__
---
本網站提供全球邊緣網路加速,不畏各種網路環境,輕鬆訪問
同時提供了多個備用地址以確保專案腳本始終可用,並真正做到使用無憂
- :material-arm-flex-outline:{ .lg .middle } __功能強大,無與倫比__
---
腳本透過方向鍵互動逐步引導使用者選擇軟體軟體源配置,讓換源更簡單
此外腳本提供了豐富的命令選項,支援 CI/CD 整合與自動化維運
- :material-pencil-ruler-outline:{ .lg .middle } __高度可自定義__
---
腳本命令選項遵循正式應用程式規範設計,能夠滿足各種進階需求
程式碼結構清晰,易於閱讀和修改,支援克隆後定制,支援多語言列印
- :material-scale-balance:{ .lg .middle } __自由,開源__
---
專案已設立 MIT 開源授權協定,腳本程式碼完全開源且免費使用
請尊重作者的知識成果,傳播時請在顯著位置標註軟體源或專案地址
| 作業系統 | 適配版本 |
| --- | :---: |
|

**Debian** | _8~13_ |
|

**Ubuntu** :material-information-outline:{ title="支援烏班圖家族衍生作業系統,例如
優麒麟 Kubuntu 等
由於迭代速度較快並不直接支援所有非 LTS 的版本,因此具體詳見文件" } | _14~25_ |
|

**Kali Linux** | _all_ |
|

**Linux Mint** | _17~22 / LMDE 2~7_ |
|

**Deepin** | _all_ |
|

**Zorin OS** | _all_ |
|

**Armbian** | _all_ |
|

**Proxmox VE** | _all_ |
|

**Raspberry Pi OS** | _all_ |
|

**Red Hat Enterprise Linux** :material-information-outline:{ title="使用
CentOS Stream 或
CentOS 源" } | _7~10_ |
|

**Fedora** | _30~43_ |
|

**CentOS** | _7~8 / Stream 8~10_ |
|

**Rocky Linux** | _8~10_ |
|

**AlmaLinux** | _8~10_ |
|

**Oracle Linux** :material-information-outline:{ title="使用
CentOS Stream 源" } | _8~10_ |
|

**openEuler** | _20~25_ |
|

**OpenCloudOS** | _8.6~9 / Stream 23_ |
|

**openKylin** | _all_ |
|

**Anolis OS** | _8 / 23_ |
|

**openSUSE** | _Leap 15 ~ 16 / Tumbleweed_ |
|

**Arch Linux** | _all_ |
|

**Manjaro** | _all_ |
|

**EndeavourOS** | _all_ |
|

**Alpine Linux** | _v3 / edge_ |
|

**Gentoo** | _all_ |
|

**NixOS** | _19~25_ |
[開 始 使 用](use/index.md){ .md-button .md-button--primary } [軟體源列表](mirrors/index.md){ .md-button }
--8<-- "docs/sponsor/main.html"
================================================
FILE: docs/mirrors/index.en.md
================================================
---
hide:
- navigation
- toc
- feedback
- footer
search:
exclude: true
---
## Chinese Mainland :flag-CN:
- :material-shimmer:{ .lg .middle } __Completely replace the official installation script__
---
It is logically consistent with [get.docker.com](https://get.docker.com) and incorporates the repositories and features of this project.
- :material-graph:{ .lg .middle } __Supports domestic derivative operating systems__
---
Compatible with a number of derivative operating systems not supported by the official installation script. :material-information-outline:{ title="In addition to the operating systems shown on the official website homepage, it also supports special systems such as those shown below.
- Kylin Server
- Huawei Cloud EulerOS
- TencentOS Server
- Alibaba Cloud Linux
" }
- :material-weight-lifter:{ .lg .middle } __Powerful and unparalleled__
---
One of the most practical open source operation and maintenance scripts on the entire network, with excellent performance
- :material-compass-rose:{ .lg .middle } __Exquisite interactive design__
---
An interactive command line interface that is easy to understand and use, way ahead of the competition
- __Docker CE Software Repository__
---
Docker CE stands for Docker Community Edition, which is another name for Docker Engine. This repository is used to download and install Docker-related packages.
- __Docker Registry Mirror__
---
Used to control the default source repository for pulling images, also known as a registry accelerator. The default is the official container registry [Docker Hub](https://hub.docker.com).
Due to some force majeure, [Docker Hub](https://hub.docker.com) is currently inaccessible in the Chinese mainland network environment, so the image cannot be pulled normally. It is recommended to use the image repository source available in Chinese mainland mentioned below.
Note: The specified Web protocol in the script is only for controlling the `Docker CE` software source. `Docker Registry` always uses the `HTTPS` protocol.
!!! quote "Built-in Registry Mirrors"
Available in Chinese mainland
| Site Name | Address | Description |
| :--: | :--: | :-- |
| 1ms Mirror | [docker.1ms.run](https://1ms.run "docker.1ms.run") | Enterprise mirror, CDN smart distribution, extremely fast, supports paid customization, recommended |
| Docker Proxy | [dockerproxy.net](https://dockerproxy.net "dockerproxy.net") | Created by ghproxy, highly available but slow, supports paid enterprise acceleration |
| DaoCloud | [docker.m.daocloud.io](https://docker.m.daocloud.io "docker.m.daocloud.io") | Well-known enterprise mirror, highly available and fast, now whitelist only |
| 1Panel Mirror | [docker.1panel.live](https://1panel.cn "docker.1panel.live") | Enterprise product self-use mirror |
This open source project is not suitable for collecting personal self-built registry accelerators. If needed, you can use command options to specify your own.
Others
| Site Name | Address | Site Name | Address |
| :- | :-: | :- | :-: |
| Alibaba Cloud (Hangzhou) | [registry.cn-hangzhou.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-hangzhou.aliyuncs.com") | Alibaba Cloud (Japan - Tokyo) | [registry.ap-northeast-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.ap-northeast-1.aliyuncs.com") |
| Alibaba Cloud (Shanghai) | [registry.cn-shanghai.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-shanghai.aliyuncs.com") | Alibaba Cloud (Singapore) | [registry.ap-southeast-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.ap-southeast-1.aliyuncs.com") |
| Alibaba Cloud (Qingdao) | [registry.cn-qingdao.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-qingdao.aliyuncs.com") | Alibaba Cloud (Malaysia - Kuala Lumpur) | [registry.ap-southeast-3.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.ap-southeast-3.aliyuncs.com") |
| Alibaba Cloud (Beijing) | [registry.cn-beijing.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-beijing.aliyuncs.com") | Alibaba Cloud (Indonesia - Jakarta) | [registry.ap-southeast-5.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.ap-southeast-5.aliyuncs.com") |
| Alibaba Cloud (Zhangjiakou) | [registry.cn-zhangjiakou.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-zhangjiakou.aliyuncs.com") | Alibaba Cloud (Germany - Frankfurt) | [registry.eu-central-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.eu-central-1.aliyuncs.com") |
| Alibaba Cloud (Hohhot) | [registry.cn-huhehaote.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-huhehaote.aliyuncs.com") | Alibaba Cloud (UK - London) | [registry.eu-west-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.eu-west-1.aliyuncs.com") |
| Alibaba Cloud (Ulanqab) | [registry.cn-wulanchabu.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-wulanchabu.aliyuncs.com") | Alibaba Cloud (US West - Silicon Valley) | [registry.us-west-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.us-west-1.aliyuncs.com") |
| Alibaba Cloud (Shenzhen) | [registry.cn-shenzhen.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-shenzhen.aliyuncs.com") | Alibaba Cloud (US East - Virginia) | [registry.us-east-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.us-east-1.aliyuncs.com") |
| Alibaba Cloud (Heyuan) | [registry.cn-heyuan.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-heyuan.aliyuncs.com") | Alibaba Cloud (UAE - Dubai) | [registry.me-east-1.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.me-east-1.aliyuncs.com") |
| Alibaba Cloud (Guangzhou) | [registry.cn-guangzhou.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-guangzhou.aliyuncs.com") | Google Cloud (North America) | [gcr.io](https://cloud.google.com/artifact-registry/docs/transition/gcr-repositories?hl=zh-cn "https://gcr.io") |
| Alibaba Cloud (Chengdu) | [registry.cn-chengdu.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-chengdu.aliyuncs.com") | Google Cloud (Asia) | [asia.gcr.io](https://cloud.google.com/artifact-registry/docs/transition/gcr-repositories?hl=zh-cn "https://asia.gcr.io") |
| Alibaba Cloud (Hong Kong) | [registry.cn-hongkong.aliyuncs.com](https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images "https://registry.cn-hongkong.aliyuncs.com") | Google Cloud (Europe) | [eu.gcr.io](https://cloud.google.com/artifact-registry/docs/transition/gcr-repositories?hl=zh-cn "https://eu.gcr.io") |
| Tencent Cloud | [mirror.ccs.tencentyun.com](https://cloud.tencent.com/document/product/1207/45596 "https://mirror.ccs.tencentyun.com") | Docker Hub | [registry.hub.docker.com](https://hub.docker.com/ "registry.hub.docker.com") |
Note: Registry mirrors from domestic cloud computing companies are only for their own business. Instances in Chinese mainland may still not be able to access Docker Hub.
## Command Options (Advanced Usage)
```
$ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --en --help
Command options(name/meaning/value):
--source Specify Docker CE mirror address (domain or IP) address
--source-registry Specify Docker Registry mirror address (domain or IP) address
--branch Specify Docker CE mirror repository (path) repo name
--branch-version Specify Docker CE mirror repository version version
--designated-version Specify Docker Engine installation version version
--codename Specify Debian-based OS codename codename
--protocol Specify Web protocol for Docker CE mirror http or https
--use-intranet-source Prefer intranet Docker CE mirror address true or false
--install-latest Whether to install the latest Docker Engine true or false
--close-firewall Whether to disable the firewall true or false
--clean-screen Whether to clear the screen before running true or false
--lang Specify the language of the script output language
--only-registry Only switch registry mirror mode none
--ignore-backup-tips Ignore backup overwrite prompt (do not backup) none
--pure-mode Pure mode, minimal output none
--help Show help menu none
```
| Name | Meaning | Value |
| :-: | :-: | :-: |
| `--source` | Specify `Docker CE` mirror address (domain or IP) | `address` |
| `--source-registry` | Specify `Docker Registry` mirror address (domain or IP) | `address (separate multiple entries with commas)` |
| `--branch` | Specify `Docker CE` mirror repository (path) | `repo name (see docs below)` |
| `--branch-version` | Specify `Docker CE` mirror repository version | `version (see docs below)` |
| `--designated-version` | Specify `Docker Engine` installation version | `version (see docs below)` |
| `--codename` | Specify `Debian-based` OS codename | `codename` |
| `--protocol` | Specify Web protocol for `Docker CE` mirror | `http` or `https` |
| `--use-intranet-source` | Prefer intranet `Docker CE` mirror address | `true` or `false` |
| `--install-latest` | Whether to install the latest `Docker Engine` | `true` or `false` |
| `--close-firewall` | Whether to disable the firewall | `true` or `false` |
| `--clean-screen` | Whether to clear the screen before running | `true` or `false` |
| `--lang` | Specify the language of the script output | `language id (see docs below)` |
| `--only-registry` | Only switch registry mirror mode | none |
| `--ignore-backup-tips` | Ignore backup overwrite prompt (do not backup) | none |
| `--pure-mode` | Pure mode, minimal output | none |
| `--help` | Show help menu | none |
> Full source format: `< Web protocol>://