In Linux systems, offline installation of Docker usually occurs in the following situations:
In some deployment environments, network restrictions or firewall settings may affect the ability to install Docker online directly through Docker's official warehouse.
For security reasons, some environments do not allow direct connection to external networks, so offline methods are required to install and update software.
Stability requirements: For systems with higher stability requirements, offline installation can ensure that Docker is compatible with other system components and avoid potential risks that may be caused by online updates.
Let’s take a look at the specific operation methods.
1. Download the installation package
Docker all offline package paths
http://get.daocloud.io/docker/builds/
linux stable version:
https://download.docker.com/linux/static/stable/
2. Unzip
Take tar -zxvf docker-20.10.20.tgz as an example
Copy docker-20.10.20.tgz to the server and decompress:
tar -zxvf docker-20.10.20.tgz
3. Copy to the specified directory
Copy all the files in the unzipped docker directory to the /usr/bin directory. The destination /user/bin is the environment variable directory
mv docker/* /usr/bin/
4. Edit configuration file
vim /etc/systemd/system/docker.service
Add file content:
[Unit] Description=Docker Application Container Engine Documentation=https://docs.docker.com After=network-online.target firewalld.service Wants=network-online.target [Service] Type=notify ExecStart=/usr/bin/dockerd ExecReload=/bin/kill -s HUP $MAINPID LimitNOFILE=infinity LimitNPROC=infinity TimeoutStartSec=0 Delegate=yes KillMode=process Restart=on-failure StartLimitBurst=3 StartLimitInterval=60s [Install] WantedBy=multi-user.target
5. Modify execution permissions
chmod +x /etc/systemd/system/docker.service systemctl daemon-reload
6. Set startup
systemctl enable docker.service
7.Start docker
systemctl start docker
8.Verification
docker -v Docker version 20.10.20, build 370c289
In addition, the specific installation steps may vary depending on the Linux distribution and version. Therefore, before proceeding with offline installation, it is recommended to consult the documentation or community support of the target Linux system for more detailed installation guides and system-specific guidance.
Online installation: Automatically install using the official installation script
The installation command is as follows:
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
You can also use the domestic daocloud one-click installation command:
curl -sSL https://get.daocloud.io/docker | sh
The above is the detailed content of Install Docker offline on Linux system. For more information, please follow other related articles on the PHP Chinese website!
![Atomic Heart The Game Is Not Ready to Load This Save [Solved] - MiniTool](https://img.php.cn/upload/article/001/242/473/174594541048769.jpg?x-oss-process=image/resize,p_40)
Due to some reasons, you may encounter the “Atomic Heart the game is not ready to load this save” error. In this post, php.cn collects the possible reasons for the issue and offers you 5 troubleshooting methods.

If you need to enjoy Windows 11 24H2 on a lower configuration computer, you can download Windows X-Lite Optimum 11 24H2 Home or Pro. Here this post on php.cn Software aims to show you Windows X-Lite Optimum 11 24H2 download and install.

Microsoft accidentally releases Windows 11 22H2 to the Windows Insiders in the Release Preview Channel. Some users think Microsoft has changed the hardware and system requirements for Windows 11. However, it is just a bug in Windows 11. You can follo

On-Screen Keyboard is a virtual keyboard that is available on Windows 11/10/8/7. If you don’t know how to open and use it on your Windows computer, you can read this post from php.cn Software to get some related information.

PrivadoVPN is a free VPN service for Windows, macOS, Android, iOS, Android TV, etc. With this free VPN, you can access any content online without location restriction and stay anonymously when browsing the internet. Check how to download and install

Wireless Bluetooth brings people many conveniences in modern life. When you don’t want to keep the Bluetooth device connected, you can choose to forget it. But how to reconnect and unforget the Bluetooth when you want to re-establish the connection?

To watch various Netflix movies and TV shows, you may use a VPN service. This post introduces some best free Netflix VPNs for your reference. For more useful computer tutorials and tools, you may go to php.cn Software official website.

Discovery Plus error 400 is a commonly seen issue when you watch your favorite TV shows and movies on Discovery Plus. This article on php.cn Website will introduce Discovery Plus 400 and some solutions for this issue.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 English version
Recommended: Win version, supports code prompts!

Notepad++7.3.1
Easy-to-use and free code editor
