1.查看Linux内核版本(3.8以上)和操作系统位数64位
uname -a
结果:
Linux jiaxiaoniu-jnq 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
查看Ubuntu版本号命令:cat /etc/issue
2.安装Docker
sudo apt-get install docker.io
3.安装后查看Docker版本
sudo docker version
结果:
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.5.1
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.5.1
Git commit (server): 7c8fca2
OS/Arch (server): linux/amd64
4.安装docker-compose
sudo apt-get update
sudo apt-get install python-pip
sudo pip uninstall docker-compose
sudo pip install docker-compose
5.查看docker-compose版本
sudo docker-compose --version
结果:
docker-compose version 1.11.2,build dfed245