ubuntu安装docker
0、卸载旧版本docker
移除docker
$apt-get purge docker-ce
移除镜像,容器,卷,网络,自定义文件等
$ sudo rm -rf /var/lib/docker
1、更新系统软件
$ sudo apt-get update
2、安装依赖包
$ sudo apt-get install apt-transport-https
$ sudo apt-get install ca-certificates
$ sudo apt-get install curl
$ sudo apt-get install software-properties-common
3、添加Docker的官方GPG密钥
$ sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
4、安装stable存储库
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
5、更新一下apt包索引
$ sudo apt-get update
6、安装最新版本的Docker CE
$ sudo apt-get install docker-ce
7、查看docker版本
$ sudo docker version
* 安装docker-compose
curl -L https://github.com/docker/compose/releases/download/1.23.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo apt-get install python-pip
sudo pip install docker-compose
* 下载并解压vulhub
wget https://github.com/vulhub/vulhub/archive/master.zip -O vulhub-master.zip
unzip vulhub-master.zip