Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: rename image/container name from "webgoat" to "webgoat.net" #28

Merged
merged 1 commit into from
Nov 17, 2020
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
14 changes: 7 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down