Skip to content

Simplify getting IP address #1107

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

Merged
merged 1 commit into from
Oct 13, 2016
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