1.Docker安装
在ubuntu上安装Docker,用下面命令:
12345$ sudo apt-get install apt-transport-https$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9$ sudo bash -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"$ sudo apt-get update$ sudo apt-get install lxc-docker查看Docker版本
1$ sudo docker version查看镜像
1$ sudo docker images运行容器:
1$ sudo docker hello-world