mirror of https://github.com/docker/docs.git
help user view the container running
The current instructions lead the user through creating a context and running a sample nginx container, but it never shows the user how to go about viewing it. I have added that.
This commit is contained in:
parent
ff4a9a46c2
commit
c4d43004d2
|
@ -103,6 +103,8 @@ docker run -p 80:80 nginx
|
|||
|
||||
After you've switched to the `myacicontext` context, you can use `docker ps` to list your containers running on ACI.
|
||||
|
||||
In the case of the demonstration nginx container you started above, you will see the result of the ps command showing a value labelled "PORTS" which will show both an IP address and port on which the container is running. For example, it may show `52.154.202.35:80->80/tcp`, in which case you can view the nginx welcome page by browsing `http://52.154.202.35`.
|
||||
|
||||
To view logs from your container, run:
|
||||
|
||||
```console
|
||||
|
|
Loading…
Reference in New Issue