From 54e27e13332ae73b6f3b8301b51bb09afe82484a Mon Sep 17 00:00:00 2001 From: Piotr Krukowiecki Date: Tue, 17 Nov 2020 10:15:21 +0100 Subject: [PATCH] Docker: rename image/container name from "webgoat" to "webgoat.net" Closes #13 --- readme.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index 81ae6d3..c2c616b 100644 --- a/readme.md +++ b/readme.md @@ -29,33 +29,33 @@ The provided Dockerfile is compatible with both Linux and Windows containers. To build a Docker image, execute the following command: ```sh -docker build --pull --rm -t webgoat . +docker build --pull --rm -t webgoat.net . ``` #### Linux containers -To run the `webgoat` image, execute the following command: +To run the `webgoat.net` image, execute the following command: ```sh -docker run -d -p 5000:80 --name webgoat webgoat +docker run -d -p 5000:80 --name webgoat.net webgoat.net ``` WebGoat.NETCore website should be accessible at http://localhost:5000. #### Windows containers -To run `webgoat` image, execute the following command: +To run `webgoat.net` image, execute the following command: ```sh -docker run --name webgoat webgoat +docker run --name webgoat.net webgoat.net ``` Windows containers do not support binding to localhost. To access the website, you need to provide the IP address of your Docker container. To obtain the IP, execute the following command: ```sh -docker exec webgoat ipconfig +docker exec webgoat.net ipconfig ``` -The output will include the IP of the 'webgoat' container, for example: +The output will include the IP of the 'webgoat.net' container, for example: ``` Ethernet adapter Ethernet: