Word count: 677, reading time approximately 4 minutes
One-Click Installation Method
This script is maintained and supported by Xuanyuan Image, and it is open-sourced on GitHub. The script supports various Linux distributions and can install Docker and Docker Compose with a single command while automatically configuring the Xuanyuan image acceleration source.
Copy the following command and execute it in the command line. Before executing the command, please ensure that your Linux system is connected to the internet.
bash <(curl -sSL https://xuanyuan.cloud/docker.sh)
Script Features
- • Wide Compatibility: Supports mainstream distributions such as Ubuntu, Debian, CentOS, RHEL, and Rocky Linux, automatically detecting the system type and selecting the optimal installation plan.
- • Efficient Download: Built-in multiple domestic image sources ensure fast downloading of required components in different network environments.
- • Automatic Configuration: Automatically configures the Xuanyuan image acceleration service, effectively improving the speed of subsequent image pulling and other operations.
- • Secure and Open Source: The script is open-sourced on GitHub (GitHub source code), with transparent and verifiable code, tested by a large number of users, safe and reliable, and supports one-click rollback to quickly restore system status in case of issues.
Installation Verification
After installation, it is recommended to execute the following commands to verify if Docker is installed successfully:
- 1. Check Docker version
docker --version
If successful, it will display the specific version information of the installed Docker.
- 2. Check Docker service status
sudo systemctl status docker
If the service is running normally, the command execution result will show that the service is in a running state (active (running)).
- 3. Run test container
sudo docker run hello-world
After running this command, if it can successfully pull and run the official test container and output the corresponding welcome message, it indicates that Docker is functioning properly.
Frequently Asked Questions
- • Which Linux distributions does this installation script support?The Xuanyuan Image script supports mainstream distributions such as Ubuntu, Debian, CentOS, RHEL, and Rocky Linux, automatically detecting the system type and selecting the optimal installation plan.
- • Is the installation script safe and reliable?The script is open-sourced on GitHub, with transparent and verifiable code. It has been tested by a large number of users, making it safe and reliable. It also supports one-click rollback to quickly restore in case of issues.
- • What should I do after installation?After installation, it is recommended to verify the Docker version, check the service status, and run a test container to ensure everything is normal. The script will automatically configure the Xuanyuan image acceleration to improve download speed.
- • Need help?If you encounter issues during installation, you can refer to the official Docker documentation or contact the Xuanyuan Image official QQ group: 51517718. The optimized installation script from Xuanyuan Image has been tested extensively and can handle most common installation issues.
GitHub Project Link
– Docker Image Source Acceleration List and User Guide
https://github.com/SeanChang/xuanyuan_docker_proxy