Installing Docker
This section describes how to install Docker 18.09.6 on a server. This general installation process is only an example. You may need to make adjustments according to the actual server environment and site requirements.
- Obtain the Docker source code.
- Download the Docker source code from a local browser.
Download address: https://download.docker.com/linux/static/stable/aarch64/docker-18.09.6.tgz
- Upload the source package to the /home directory on the server.
If the server is connected to the Internet, run the wget command to download the Docker source code.1 2
cd /home wget https://download.docker.com/linux/static/stable/aarch64/docker-18.09.6.tgz --no-check-certificate
- Download the Docker source code from a local browser.
- Decompress the Docker package.
1 2
cd /home tar -zxf docker-18.09.6.tgz
- Configure environment variables.
- Open the file.
1vim /etc/profile - Press i to enter the insert mode and add the following content to the file:
PATH=$PATH:/home/docker
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Make the environment variables take effect.
1source /etc/profile
- Open the file.
- Check whether the Docker version is 18.09.6.
1docker version
Parent topic: Nginx Container Deployment Guide