美文网首页
ubuntu14.04 LTS 安装 docker

ubuntu14.04 LTS 安装 docker

作者: zhaodianle | 来源:发表于2018-04-18 13:24 被阅读0次

    文章转载来源
    https://beansroasted.wordpress.com/2017/08/03/install-docker-ce-on-ubuntu-14-04-trusty/

    Install Docker CE on Ubuntu 14.04 (Trusty)

    1] Uninstall older versions of docker if any.
    sudo apt-get remove docker docker-engine docker.io

    2] Update the repository
    sudo apt-get update

    3] Install recommended extra packages for Trusty 14.04
    sudo apt-get install \ linux-image-extra-$(uname -r) \ linux-image-extra-virtual

    4] Update apt-get and install packages to allow apt to use a repository over HTTPS
    sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common

    5] Add docker GPG file
    curl -fsSL [https://download.docker.com/linux/ubuntu/gpg](https://download.docker.com/linux/ubuntu/gpg) | sudo apt-key add -

    6] Verify fingerprint
    sudo apt-key fingerprint 0EBFCD88

    7] Use following commands to setup stable repository. You can also install builds from test and edge repositories.
    sudo add-apt-repository \ "deb [arch=amd64] [https://download.docker.com/linux/ubuntu](https://download.docker.com/linux/ubuntu) \ $(lsb_release -cs) \ stable"

    8] Update apt and install docker ce
    sudo apt-get update sudo apt-get install docker-ce

    To test if docker has been installed correctly, execute the following command.
    sudo docker run hello-world

    To list all the docker local container:
    docker ps -a

    相关文章

      网友评论

          本文标题:ubuntu14.04 LTS 安装 docker

          本文链接:https://www.haomeiwen.com/subject/tgyvkftx.html