Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Run the DVWA Docker image using Docker Desktop MacOS and Win

This lab guides you through installing Docker Desktop and running the Damn Vulnerable Web Application (DVWA) image locally.


1. Install Docker Desktop

  1. Download and install Docker Desktop:
    https://www.docker.com/products/docker-desktop/
  2. Open Docker Desktop after installation.
  3. Windows users: you may need to enable or install WSL. See:
    https://docs.docker.com/desktop/features/wsl/

2. Search for the DVWA image

  1. In Docker Desktop, use the Search field and type:vulnerables/web-dvwa
  2. Pull the first result.

alt text

alt text


3. Run the pulled image

  1. Go to the Images tab and find the image you pulled. Click Run.

alt text

  1. In the run dialog:
    • Set a container name (for example dvwa-container).
    • Map ports. For example map container port 80 to host port 8080 (you can choose another host port if you prefer).

Example mapping:

Host port: 8080
Container port: 80

alt text

  1. Click Run Container.

4. Confirm the container is running

  1. Open the Containers tab in Docker Desktop.
  2. You should see your container listed and running.

alt text


5. Access DVWA in your browser

  1. Open a web browser and go to:
http://localhost:8080

Replace 8080 with the host port you used if different.

alt text

  1. Login with the default credentials:
  • Username: admin
  • Password: password

You are now ready to use DVWA locally.

Best,

Ali

Copyright © 2025 • Created by Ali Jaddoa

Page last updated: Tuesday 18 November 2025 @ 08:19:45 | Commit: dc82693