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
21 changes: 3 additions & 18 deletions docs/framework/docker/aspnetmvc.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,26 +186,11 @@ The `mvcrandomanswers` is the name of the image to start.
> the IP address of the container.

Once the container starts, you'll need to find its IP address so that you
can connect to your running container from a browser. You use the `docker exec`
command to do that:
can connect to your running container from a browser:

```
docker exec randomanswers ipconfig
```

You will see an output similar to this:

```
Windows IP Configuration


Ethernet adapter Ethernet 2:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::91d:ce97:dd27:460d%5
IPv4 Address. . . . . . . . . . . : 172.31.194.61
Subnet Mask . . . . . . . . . . . : 255.240.0.0
Default Gateway . . . . . . . . . : 172.16.0.1
docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" randomanswers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this does in fact get straight to the ipaddress, Windows users/admins are accustomed to using the ipconfig command and seeing the output. Can we combine the original content and add this line as a "shortcut" stating as such?

172.31.194.61
```

You can connect to the running container using the IPv4
Expand Down