hans

hans

【Linux】【Docker】Ubuntu14.04 安装 Docker CE


Official installation manual address:

https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-repository

  1. Check and uninstall old version of Docker

    sudo apt-get remove docker docker-engine docker.io

  2. Install some other software

    sudo apt-get update
    sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

  3. Add official PGP key:

    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

  4. Add apt installation configuration:

    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

  5. Installation:

    sudo apt-get update
    sudo apt-get install docker-ce

  6. Remove sudo command when using docker:

    sudo gpasswd -a username docker
    sudo service docker restart

Restart the computer after completion.

加载中...
此文章数据所有权由区块链加密技术和智能合约保障仅归创作者所有。