Installation based sqli-labs under the docker kail

The later stages involve transcoding issues, such as space will be limited in Windows, such as 24 related file renaming problem, so the installation sqli-labs at docker in this record, running under linux will not be restricted .

Reference link: https: //www.jianshu.com/p/2ad3edf3c61f etc.

 

To begin, you install kail, the first thing to do is update the source, the source is recommended Ali

There are too many online tutorials in this regard, the update source will not say more.

 

Then install docker: aqt-get install docker.io

docker be able to use the command

 

 After: modification in this directory daemon.json file (if not new), or docker service to get up behind the operation can not be performed.

Note that the third line is to modify the registry-mirrors for domestic source when docker pull mirroring, the default is abroad. Here I also used Ali, try to be consistent, otherwise prone to metaphysical questions before I pull that down, though you can add more than one source, but re-edit just fine

 

After the restart the service: Find a mirror, pay attention to this as far as possible with the first, star relatively high, and a series of metaphysical problem occurred after I pull the other down. .

 

 

Then pull: pull I've had it, in short, more later on the line, this is just modify the source when used, or will be particularly slow or directly timeout

 

 

 

View the current image:

 

 

 

Mirror operation exist: docker run -dt --name sqli-labs -p 300: 80 --rm acgpiano / sqli-labs

Parameter Description: -dt run in the background; --name name will ;-p 80:80 docker container port mapping back to the front of the host ports, - rm option so that when the container exit can automatically clean the inside of the container file system

After running a bunch of you should check that value, docker reaction is quite rapid.

 

I mapped to the 300 port, so:

 

 

 Then the other virtual machines (which I use win2003) to set up a local area network or host, can also be visited:

 

 

 

 

 

 

End: docker download the update source or when the need for networking, bridging the replication network, the virtual machine can be set to dhcp

 

Supplementary docker command:

docker ps # 查看正在运行的容器

docker ps –a # 查看所有容器

docker images #列出本地镜像

docker start CONTAINER # 启动一个或多少已经被停止的容器

docker stop CONTAINER # 停止一个运行中的容器

docker restart CONTAINER #重启容器

docker rm CONTAINER # 删除容器

docker rmi IMAGE # 删除镜像

restart docker #重启docker

 

补充:daoker下查看数据库:

 

 

 

 

Guess you like

Origin www.cnblogs.com/hzk001/p/12233275.html