Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Docker

  1. Decompress the Docker installation package.
    tar zxf docker-19.03.10.tgz
  2. Move the decompressed files to /usr/bin.
    cp docker/* /usr/bin
  3. Edit the docker.service file.
    1. Open the docker.service file.
      vim /usr/lib/systemd/system/docker.service
    2. Add the following 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
    3. Press Esc, type :wq!, and press Enter to save the settings and exit.
  4. Start the Docker service process.
    1
    systemctl start docker
    
  5. Check the installation.
    docker version

    As shown in the following figure, if Client and Server information is displayed, the installation is successful.