starting_a_nginx_web_server.md (514B)
1 # starting a nginx web server 2 3 ``` 4 docker container run --publish 80:80 nginx 5 ``` 6 * pulls latest image from docker hub 7 * starts new container using latest image 8 * opened port 80 9 * routes traffic from localhost:80 10 11 list containers 12 ``` 13 docker container ls [-a] 14 ``` 15 16 stop container 17 ``` 18 docker container stop <container_id> 19 ``` 20 - only need first few characters of container id 21 22 view container logs 23 ``` 24 docker container logs <container_name> 25 ``` 26 27 display running processes 28 ``` 29 docker container top <container_name> 30 ```