安装vulhub靶场环境完全手册(Ubuntu)

1.安装docker
~sudo apt-get update
~sudo apt-get install
apt-transport-https
ca-certificates
curl
gnupg-agent
software-properties-common
~curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
~sudo add-apt-repository
“deb [arch=amd64] https://mirrors.ustc.edu.cn/docker- ce/linux/ubuntu
$(lsb_release -cs)
stable”
~sudo apt-get update
~sudo apt-get install docker-ce docker-ce-cli containerd.io
~sudo systemctl enable docker
~sudo systemctl start docker
~sudo docker run hello-world(验证安装成功)
(~sudo usermod -aG docker $USER) //不用sudo运行docker命令(选)

2.安装docker-compose
本地安装:离线包地址:https://github.com/docker/compose/releases(建议用镜像站访问)
下载后,存放在目录:/home/ubuntu
/home/ubuntu# ls
docker-compose-Linux-x86_64
~sudo mv

你可能感兴趣的:(vulhub,ubuntu,docker,渗透测试,安全漏洞)