美文网首页
ubuntu 下安装Docker

ubuntu 下安装Docker

作者: 五人行 | 来源:发表于2016-12-11 23:17 被阅读0次

    hadoop@node2:~$ uname -r

    4.4.0-45-generic

    hadoop@node2:~$ sudo apt-get update

    hadoop@node2:~$ sudo apt-get install apt-transport-https ca-certificates

    E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

    hadoop@node2:~$ sudo rm /var/lib/dpkg/lock

    hadoop@node2:~$ sudo apt-get install apt-transport-https ca-certificates

    Do you want to continue? [Y/n] y

    hadoop@node2:~$ sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

    hadoop@node2:~$ echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list

    hadoop@node2:~$ sudo apt-get update

    hadoop@node2:~$ sudo apt-get install docker-engine

    hadoop@node2:~$ sudo service docker start

    hadoop@node2:~$ docker images

    Cannot connect to the Docker daemon. Is the docker daemon running on this host?

    hadoop@node2:~$ sudo docker images

    REPOSITORY          TAG                IMAGE ID            CREATED            SIZE

    hadoop@node2:~$

    相关文章

      网友评论

          本文标题:ubuntu 下安装Docker

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