1. Modify the domestic update source to facilitate docker installation

vim /etc/apt /sources.list
Copy the code

Write domestic update source address:

deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted

deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse restricted universe main
Copy the code

2. Run the command to update the information

apt-get update
Copy the code

3. Install the docker

apt-get install docker.io
Copy the code

4. Configuration docker

Docker -v # check docker systemctl start docker # check docker systemctl enable docker #Copy the code

5. Install the shooting range

docker pull iwebsec/iwebsec
Copy the code

#Listing local Mirrors
docker images 
Copy the code

#Find the IWebSec specification filefind / -name iwebsec_info.md /var/lib/docker/overlay2/12f305e71ad7d5188051ededb9de6383982cc1f6f5f0dd8d9079f2a6b096e2ae/diff/root/iwebsec/iwebsec_info .mdCopy the code

#View description filecat /var/lib/docker/overlay2/12f305e71ad7d5188051ededb9de6383982cc1f6f5f0dd8d9079f2a6b096e2ae/diff/root/iwebsec/iwebsec_info .mdCopy the code

#Start the shooting range
docker run -d -p 13307:3306 -p 80:80 -p 7001:7001 -p 8080:8080 -p 8088:8088 -p 8000:8000 -p 6379:6379 iwebsec/iwebsec 

#View the Docker process
ps -ef|grep docker
Copy the code

6. Access the shooting range through IP

To access the range, enter the Linux IP address in the local explorer.