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:~$
网友评论