The easiest way to start WebGoat as a Docker container is to use the All-in-One WebGoat image which contains both WebGoat and WebWolf as well as an NGINX reverse proxy.
Run the following command to download the All-in-One image from DockerHub, and consequently install and execute both WebGoat and WebWolf.
docker run -d -p 8080:8080 -p 9090:9090 -e TZ=Europe/Amsterdam webgoat/goatandwolf
Another way to deply WebGoat and WebWolf in a more advanced way is to use a compose-file such as the
docker-compose.yml file from the WebGoat Github repository. This will start both containers and it also takes care of setting up the connection between WebGoat and WebWolf.
Create folder WASE in your laptop / PC and go into that folder.
Run the following command from the folder WASE
curl https://raw.githubusercontent.com/WebGoat/WebGoat/develop/docker-compose.yml | docker-compose -f - up
docker-compose file will simplify getting WebGoat and WebWolf up and running.