我要评分
获取效率
正确性
完整性
易理解

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.

  1. Obtain the Docker source code.
    1. Download the Docker source code from a local browser.

      Download address: https://download.docker.com/linux/static/stable/aarch64/docker-18.09.6.tgz

    2. 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
      
  2. Decompress the Docker package.
    1
    2
    cd /home
    tar -zxf docker-18.09.6.tgz
    
  3. Configure environment variables.
    1. Open the file.
      1
      vim /etc/profile
      
    2. Press i to enter the insert mode and add the following content to the file:
      PATH=$PATH:/home/docker
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
    4. Make the environment variables take effect.
      1
      source /etc/profile
      
  4. Check whether the Docker version is 18.09.6.
    1
    docker version