Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ docker build --pull --rm -t webgoat.net .
To run the `webgoat.net` image, execute the following command:

```sh
docker run -d -p 5000:80 --name webgoat.net webgoat.net
docker run --rm -d -p 5000:80 --name webgoat.net webgoat.net
```

WebGoat.NETCore website should be accessible at http://localhost:5000.
Expand All @@ -47,7 +47,7 @@ WebGoat.NETCore website should be accessible at http://localhost:5000.
To run `webgoat.net` image, execute the following command:

```sh
docker run --name webgoat.net webgoat.net
docker run --rm --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:
Expand All @@ -69,6 +69,14 @@ Ethernet adapter Ethernet:

In the above example, you can access the WebGoat.NETCore website at http://172.29.245.43.

#### Stopping Docker container

To stop the `webgoat.net` container, execute the following command:

```sh
docker stop webgoat.net
```

### 2. Run locally using dotnet.exe (Kestrel)

Requires .NET Core SDK 3.0 or later.
Expand Down