Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 364 Bytes

demo-03.md

File metadata and controls

17 lines (11 loc) · 364 Bytes

Docker Demo 3

Running container in TERMINAL mode with port forwarding. All logs would be LIVE STREAMED !!

$ docker run -p 8080:80 -t --name w1 --rm nginx:1.13.0

Try accessing page http://localhost:8080 in any web browser, and verify the logs in command terminal.

Now, stop and remove the container

$ docker stop w1
$ docker rm w1