主页

在 docker 里面安装 DVWA

2023-11-29 04:20PM

1. 确保你已经安装了 docker

$ docker --version
Docker version 24.0.7, build afdd53b

2. 拉取DVWA镜像,使用下面这个命令来从Docker Hub上拉取DVWA的镜像

$ docker pull vulnerables/web-dvwa

3. 启动 DVWA 容器,可以根据自己的需求来自定义端口号

$ docker run -p 8080:80 vulnerables/web-dvwa

[+] Starting mysql...
Starting MariaDB database server: mysqld.
[+] Starting apache
Starting Apache httpd web server: apache2AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
.
==> /var/log/apache2/access.log <==

==> /var/log/apache2/error.log <==
[Wed Nov 29 08:11:16.431189 2023] [mpm_prefork:notice] [pid 284] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Wed Nov 29 08:11:16.431277 2023] [core:notice] [pid 284] AH00094: Command line: '/usr/sbin/apache2'

4. 然后在浏览器打开 http://localhost:8080 网址,就可以了

返回>>

登录

请登录后再发表评论。

评论列表:

目前还没有人发表评论