Chandan Yadav
Dec 17, 2023

How To Run And Manage DVWA In A Docker Container With A Single Command

docker run — name dvwa -p 9999:80 -d vulnerables/web-dvwa

Here’s a breakdown of the command:

  • docker run: This command is used to run a Docker container.
  • --name dvwa: This option assigns the name "dvwa" to the container.
  • -p 9999:80: This option maps port 80 from the container to port 9999 on the host. This means you can access the web server running inside the container by connecting to http://localhost:9999 on your host machine.
  • -d: This option runs the container in detached mode, meaning it runs in the background, and the terminal is free for other commands.

The image “vulnerables/web-dvwa” is a Docker image for Damn Vulnerable Web Application (DVWA), which is intentionally vulnerable for practicing web security testing.

Chandan Yadav
Chandan Yadav

Written by Chandan Yadav

🔒 Cybersecurity enthusiast 🌐 | Lifelong learner in InfoSec 📚 | Dedicated to safeguarding data 💻 | Let's secure the future! 🔐

No responses yet