Run DVWA in an isolated Docker lab on Linux

Published · Updated

Save

Damn Vulnerable Web Application is intentionally vulnerable. Run it only on a private training system you control and follow the upstream project’s Compose instructions.

Keep access local

Use a disposable development machine or VM. Before starting, inspect the upstream Compose configuration and verify the published host address is loopback. Check with docker compose ps after startup. Keep the lab off public interfaces, shared production networks and automatic reverse-proxy discovery.

Separate the lab from real data

Use disposable credentials and data. Keep the host and Docker installation updated and avoid forwarding the lab’s port through a router or tunnel. Shut the lab down with docker compose down when the exercise ends.

References

DVWA upstream setup and security warning

Docker port publishing

Discuss this answer