Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Docker

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Download the installation package and decompress it.
    cd /path/to
    wget https://download.docker.com/linux/static/stable/aarch64/docker-18.09.8.tgz
    tar -xzvf docker-18.09.8.tgz
  3. Configure Docker.
    cp -p docker/* /usr/bin/
    vim /lib/systemd/system/docker.service

    Add the following content and save the file.

    [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
  4. Start the Docker service.
    systemctl start docker.service
  5. View the Docker version.
    docker version

    If the version 18.09.8 in displayed in the command output, the installation is successful.