2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								hide:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  -  navigation
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  -  footer
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-10 18:52:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# :simple-docker:{style="color: #1d63ed"} Docker Installation & Registry Mirror Switcher
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## One-Click Command
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								=== "Install"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    !!! quote ""
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        === ":linuxmirrors: Official Site (Recommended)"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --en
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        === ":simple-github: GitHub"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            bash < (curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh) --en
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-07-05 03:52:39 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        === ":simple-gitee: Gitee"
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            bash < (curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --en
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
									
										
										
										
											2025-10-08 21:08:32 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            >  Real-time sync, no delay. Recommended for use in Chinese mainland network environments.
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        === ":simple-gitcode: GitCode"
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            bash < (curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --en
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
									
										
										
										
											2025-08-08 03:37:44 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            >  1-hour sync delay.
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        === ":simple-jsdelivr: jsDelivr (CDN)"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            bash < (curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation .sh) --en
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        === ":tencent-cloud: Tencent Cloud EO (CDN)"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            bash < (curl -sSL https://edgeone.linuxmirrors.cn/docker.sh) --en
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
									
										
										
										
											2025-10-08 21:08:32 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            >  Not recommended in Chinese mainland network environments.
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-08-29 21:38:36 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        Integrates installation of [`Docker Engine` ](https://docs.docker.com/engine ) and [`Docker Compose` ](https://docs.docker.com/compose ), supports selecting or switching software repositories (Docker repositories) and registry mirrors, installing specific versions, reinstalling, and supports ARM architecture.
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        The script refers to the [official documentation ](https://docs.docker.com/engine/install ) and uses the system package manager for installation. There are no compatibility or security issues. The available versions are determined by the Docker CE repository.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								=== "Only Switch Registry Mirror"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    !!! quote ""
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        === ":linuxmirrors: Official Site (Recommended)"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --en --only-registry
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        === ":simple-github: GitHub"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            bash < (curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/DockerInstallation.sh) --en --only-registry
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-07-05 03:52:39 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        === ":simple-gitee: Gitee"
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            bash < (curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --en --only-registry
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
									
										
										
										
											2025-10-08 21:08:32 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            >  Real-time sync, no delay. Recommended for use in Chinese mainland network environments.
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        === ":simple-gitcode: GitCode"
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            bash < (curl -sSL https://raw.gitcode.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) --en --only-registry
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
									
										
										
										
											2025-08-08 03:37:44 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            >  1-hour sync delay.
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        === ":simple-jsdelivr: jsDelivr (CDN)"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            bash < (curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation .sh) --en --only-registry
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        === ":tencent-cloud: Tencent Cloud EO (CDN)"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            bash < (curl -sSL https://edgeone.linuxmirrors.cn/docker.sh) --en --only-registry
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
									
										
										
										
											2025-10-08 21:08:32 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            >  Not recommended in Chinese mainland network environments.
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-08-06 10:48:13 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< div  class = "grid cards"  markdown > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-09-30 10:40:23 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-    :material-shimmer:{ .lg .middle } __Completely replace the official installation script__ 
							 
						 
					
						
							
								
									
										
										
										
											2025-08-06 10:48:13 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    It is logically consistent with [get.docker.com ](https://get.docker.com ) and incorporates the repositories and features of this project.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-09-30 10:40:23 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-    :material-graph:{ .lg .middle } __Supports domestic derivative operating systems__ 
							 
						 
					
						
							
								
									
										
										
										
											2025-08-06 10:48:13 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-08-08 02:26:22 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    Compatible with a number of derivative operating systems not supported by the official installation script. :material-information-outline:{ title="In addition to the systems displayed on the official website, it also supports special systems such as < code > Huawei Cloud EulerOS< / code >     < code > TencentOS Server< / code >     < code > Alibaba Cloud Linux< / code > " }
							 
						 
					
						
							
								
									
										
										
										
											2025-08-06 10:48:13 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-09-30 10:40:23 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-    :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
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-08-06 10:48:13 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-08-08 02:26:22 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< div  style = "display: flex; align-items: center; gap: 8px;" > 
							 
						 
					
						
							
								
									
										
										
										
											2025-09-30 10:40:23 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < p > ✨ After years of technical accumulation and production environment testing, it has been widely praised by the community and deeply loved by developers. It is used by major companies.< / p > 
							 
						 
					
						
							
								
									
										
										
										
											2025-08-08 02:26:22 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < div  class = "icon-brand-section" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < div  class = "icon-brand-container no-select" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < a  class = "icon-brand-button"  target = "_blank"  href = "https://1panel.pro"  title = "1Panel" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          < img  src = "/assets/images/sponsor/1panel.png"  alt = "1panel"  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < a  class = "icon-brand-button"  target = "_blank"  href = "https://www.aapanel.com"  title = "aaPanel"  style = "padding: 0 !important" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          < img  src = "/assets/images/other/aaPanel.png"  alt = "aapanel"  style = "width: 76% !important"  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
									
										
										
										
											2025-08-06 10:48:13 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / br > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								!!! tip "Docker Compose does not require a separate installation"
							 
						 
					
						
							
								
									
										
										
										
											2025-07-05 03:52:39 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    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` .
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								!!! node "About Software Sources"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < div  class = "grid cards"  markdown > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    -    __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 ).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-08 21:08:32 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    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 warehouse source available in Chinese mainland mentioned below.
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-08-08 02:26:22 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    Note: The specified Web protocol in the script is only for controlling the `Docker CE`  software source. `Docker Registry`  always uses the `HTTPS`  protocol.
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								!!! quote "Built-in Registry Mirrors"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < div  style = "text-align: center"  markdown > 
							 
						 
					
						
							
								
									
										
										
										
											2025-10-08 21:08:32 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < div  style = "font-size: 0.8rem" > < strong > Available in Chinese mainland< / strong > < / div > 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    | 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 |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < blockquote  style = "border-left: none !important" > 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.< / blockquote > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < div  style = "font-size: 0.8rem; margin-top: 1rem" > < strong > Others< / strong > < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    | 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" ) |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-08 21:08:32 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < blockquote  style = "border-left: none !important" > 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.< / blockquote > 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## Command Options (Advanced Usage)
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-10 18:52:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								<!--  termynal  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								$ bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --en --help 
							 
						 
					
						
							
								
									
										
										
										
											2025-10-10 18:52:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Command options(name/meaning/value):
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 05:13:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  --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
							 
						 
					
						
							
								
									
										
										
										
											2025-10-10 18:52:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  --designated-version      Specify Docker Engine installation version                 version
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  --codename                Specify Debian-based OS codename                           codename
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 05:13:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  --protocol                Specify Web protocol for Docker CE mirror                  http or https
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  --use-intranet-source     Prefer intranet Docker CE mirror address                   true or false
							 
						 
					
						
							
								
									
										
										
										
											2025-10-10 18:52:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  --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
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  --lang                    Specify the language of the script output                  language
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 05:13:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  --only-registry           Only switch registry mirror mode                           none
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  --ignore-backup-tips      Ignore backup overwrite prompt (do not backup)             none
							 
						 
					
						
							
								
									
										
										
										
											2025-10-10 18:52:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  --pure-mode               Pure mode, minimal output                                  none
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  --help                    Show help menu                                             none
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| Name | Meaning | Value |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| :-: | :-: | :-: |
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 05:13:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| `--source`  | Specify `Docker CE`  mirror address (domain or IP) | `address`  |
							 
						 
					
						
							
								
									
										
										
										
											2025-10-23 05:35:17 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| `--source-registry`  | Specify `Docker Registry`  mirror address (domain or IP) | `address (separate multiple entries with commas)`  |
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 05:13:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| `--branch`  | Specify `Docker CE`  mirror repository (path) | `repo name (see docs below)`  |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| `--branch-version`  | Specify `Docker CE`  mirror repository version | `version (see docs below)`  |
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| `--designated-version`  | Specify `Docker Engine`  installation version | `version (see docs below)`  |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| `--codename`  | Specify `Debian-based`  OS codename | `codename`  |
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 05:13:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| `--protocol`  | Specify Web protocol for `Docker CE`  mirror | `http`  or `https`  |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| `--use-intranet-source`  | Prefer intranet `Docker CE`  mirror address | `true`  or `false`  |
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| `--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`  |
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| `--lang`  | Specify the language of the script output | `language id (see docs below)`  |
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| `--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 |
							 
						 
					
						
							
								
									
										
										
										
											2025-10-10 18:52:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| `--help`  | Show help menu | none |
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-10 18:52:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								>  Full source format: `< Web  protocol>://<source address (domain or IP)>/<repository path>`
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  ### Specify Registry Mirror Address
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ``` { .bash .no-copy }
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --en --source-registry registry.example.com
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ```
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-23 05:35:17 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    Can specify multiple addresses at the same time, and they must be separated by commas.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ``` { .bash .no-copy }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --en \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      --source-registry "registry-1.example.com,registry-2.example.com"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  ### Only Switch Registry Mirror
							 
						 
					
						
							
								
									
										
										
										
											2025-08-08 02:26:22 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    === "Use Script for One-Click Replacement"
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        Only switches the registry accelerator. If Docker is not installed, an error will be reported and exit.
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --en --only-registry
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        ```
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-23 05:35:17 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        Lazy one-click command (using multiple addresses)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        ``` bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --en \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          --only-registry \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          --source-registry "docker.1ms.run,docker.1panel.live,docker.m.daocloud.io"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    === "Manual Replacement"
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        -  Install the `jq`  package
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            === "Debian-based / openKylin"
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                ``` bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                apt-get install -y jq
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                ```
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                >  `Debian`   `Ubuntu`   `Kali`   `Linux Mint`   `Deepin`   `Zorin OS`   `Armbian`   `Proxmox VE`   `Raspberry Pi OS`   `openKylin`
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                For new systems, run `apt-get update`  first.
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            === "RedHat-based / openEuler / OpenCloudOS / Anolis OS"
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								                ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                dnf install -y jq || yum install -y jq
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								                ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								                >  `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `AlmaLinux`   `Fedora`   `openEuler`   `OpenCloudOS`   `Anolis OS`
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        -  Specify registry mirror address
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            >  Manually replace `<example.registry.com>` with the registry address. See the address column in the "Built-in Registry Mirrors" table above.
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            SOURCE_REGISTRY='"https://< example.registry.com > "'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            You can also specify multiple registry mirrors, e.g., `SOURCE_REGISTRY='"https://example.registry.com","https://test.registry.com"'` , separated by commas.
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        -  Replace registry mirror address
							 
						 
					
						
							
								
									
										
										
										
											2025-08-16 03:36:02 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            [ -s "/etc/docker/daemon.json" ] || echo "{}" >/etc/docker/daemon.json
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            jq '.["registry-mirrors"] = ['"${SOURCE_REGISTRY}"']' /etc/docker/daemon.json >/etc/docker/daemon.json.tmp & &  mv /etc/docker/daemon.json.tmp
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
									
										
										
										
											2025-08-16 03:36:02 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        -  Restart Docker service
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            systemctl daemon-reload
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            [[ $(systemctl is-active docker) == "active" ]] & &  systemctl restart docker || systemctl enable --now docker
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  ### Specify Docker CE Source Address
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ``` { .bash .no-copy }
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --en --source mirror.example.com/docker-ce
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ```
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 05:13:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    >  Note: The address path must include the Docker CE mirror repository path, i.e., `docker-ce`.
 
							 
						 
					
						
							
								
									
										
										
										
											2025-09-29 01:53:16 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  ### Specify Docker CE Source Repository
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    The script will automatically detect this in most cases. Specify only if you have special requirements.
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ``` { .bash .no-copy }
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --en --branch centos
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ```
							 
						 
					
						
							
								
									
										
										
										
											2025-10-20 01:23:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    >  Repository names are fixed: [`centos`](https://download.docker.com/linux/centos/) [`debian`](https://download.docker.com/linux/debian/) [`fedora`](https://download.docker.com/linux/fedora/) [`raspbian`](https://download.docker.com/linux/raspbian/) [`rhel`](https://download.docker.com/linux/rhel/) [`sles`](https://download.docker.com/linux/sles/) [`static`](https://download.docker.com/linux/static/) [`ubuntu`](https://download.docker.com/linux/ubuntu/)  
 
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    >  See [official installation docs](https://docs.docker.com/engine/install) and [Docker CE official repo](https://download.docker.com/linux) for details.
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ``` { .bash .no-copy title="Can also specify the repository version number." }
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --en \
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      --branch centos \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      --branch-version 9
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    >  This option can be used to control the compatibility of the installed software package (only applicable to Red Hat operating systems). For details, see the path name (positive integer) representing the version number in the corresponding warehouse directory.
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  ### Specify Docker Engine Installation Version
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    When specifying a version, the "install latest" option is ignored. Format: `major.minor.patch` , e.g., `28.4.1` .
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ``` { .bash .no-copy }
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --en --designated-version 28.0.0
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    >  If the specified version does not exist or is not supported on your system, the script will report an error and exit.
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ??? quote "How to view available versions"
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        === "Debian-based"
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            apt-cache madison docker-ce | awk '{print $3}' | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}" | sort -t '.' -k1,1nr -k2,2nr -k3,3nr
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            >  `Debian`   `Ubuntu`   `Kali`   `Linux Mint`   `Deepin`   `Zorin OS`   `Armbian`   `Proxmox VE`   `Raspberry Pi OS`
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        === "RedHat-based / openEuler / OpenCloudOS / Anolis OS"
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            dnf list docker-ce --showduplicates | sort -r | awk '{print $2}' | grep -Eo "[0-9][0-9].[0-9]{1,2}.[0-9]{1,2}" | sort -t '.' -k1,1nr -k2,2nr -k3,3nr
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            >  `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `AlmaLinux`   `Fedora`   `openEuler`   `OpenCloudOS`   `Anolis OS`
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        Versions not listed are not supported by this script. If you cannot get the version list, your system environment has not been properly configured for the Docker CE repository (this will not happen when running the script).
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  ### I18n (Internationalization)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    The script provides multi-language support. Currently, there are three built-in display languages: `简体中文` 、`繁體中文` 、`English` . The default is `简体中文` .
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    -  #### Specify Language
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        ``` { .bash .no-copy }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --lang xxx
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        | Type | Value |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        | :-: | :-: |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        | 简体中文 | `zh-hans`  `zh-cn`  `zh`  |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        | 繁體中文 | `zh-hant`  `zh-tw`  `zh-hk`  |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        | English | `en`  `en-us`  |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        It can also be used directly as a command option
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        ``` bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        >  `--en` `--en-us` `--zh` `--zh-cn` `--zh-hans` `--zh-hant`
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    -  #### Select through interaction
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        ``` bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --lang auto
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        ```
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  ### Unattended (Automation)
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    To perform installation without interaction, use at least the following options. Recommended for experienced users.
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ``` { .bash .no-copy title="Example Command" }
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --en \
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      --source mirror.example.com/docker-ce \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      --source-registry registry.hub.docker.com \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      --protocol http \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      --use-intranet-source false \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      --install-latest true \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      --close-firewall true \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      --ignore-backup-tips
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    >  If you get an "invalid option" error, check the option validity and whitespace encoding. Each option is written on a separate line for readability.
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  ### Pure Mode
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    This feature is introduced to facilitate the use of developers and operation and maintenance personnel. After it is enabled, the script content output will be simplified. It is recommended to use it with other command options without interaction.
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ``` bash
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    bash < (curl -sSL https://linuxmirrors.cn/docker.sh) --en --pure-mode
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ```
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    !!! tip "Scrolling command logs may have unpredictable display issues, but no problems have been found so far."
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## FAQ
 
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  #### About Service Startup Errors
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    !!! quote ""
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        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.
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        Uninstall commands:
							 
						 
					
						
							
								
									
										
										
										
											2025-07-05 03:52:39 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        === "Debian-based"
							 
						 
					
						
							
								
									
										
										
										
											2025-07-05 03:52:39 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            apt-get remove -y docker* containerd.io runc & &  apt-get autoremove
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            >  `Debian`   `Ubuntu`   `Kali`   `Linux Mint`   `Deepin`   `Zorin OS`   `Armbian`   `Proxmox VE`   `Raspberry Pi OS`
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        === "RedHat-based / openEuler / OpenCloudOS / Anolis OS"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ``` bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            yum remove -y docker* containerd.io podman* runc
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            ```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            >  `Red Hat Enterprise Linux`   `CentOS`   `Rocky Linux`   `AlmaLinux`   `Fedora`   `openEuler`   `OpenCloudOS`   `Anolis OS`
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        After uninstalling, simply rerun the script to install.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 07:22:53 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  #### About unsupported operating systems
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    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.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-10 18:52:56 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    You can also use    [{ width="140" style="vertical-align: -0.2rem" }](https://www.docker.com/products/docker-desktop)
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## Best Practices
 
							 
						 
					
						
							
								
									
										
										
										
											2025-07-05 03:52:39 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								??? note "Code examples for enterprise product deployment and automated operations such as CI/CD (expand to view)"
							 
						 
					
						
							
								
									
										
										
										
											2025-07-05 03:52:39 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    If you don't want any user interaction, use the `fully automated`  example.
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    -  #### Fully automated (recommended)
							 
						 
					
						
							
								
									
										
										
										
											2025-06-27 22:25:33 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        --8< --  " docs / other / example1 . md " 
							 
						 
					
						
							
								
									
										
										
										
											2025-09-30 10:40:23 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    -  #### Simple method
							 
						 
					
						
							
								
									
										
										
										
											2025-09-30 10:40:23 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-10-05 10:01:15 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        --8< --  " docs / other / example2 . md " 
							 
						 
					
						
							
								
									
										
										
										
											2025-10-12 05:13:57 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        >  Note: If you don't specify `Docker CE` and `Docker Registry` mirrors, the script will be interactively selected by the user. The screen will be automatically cleared (`$ clear`) at this point, which will cause your script's log to be cleared.