Last active
October 26, 2018 15:09
-
-
Save kulas/69fdf981962573135191ac20bd9bbc65 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cheat Sheet: Docker | |
Lists running containers | |
$ docker ps | |
Shows what images are available? | |
$ docker images | |
Shows ? | |
$ docker network ls | |
Troubleshooting Ports | |
$ docker run -d -p 8080:80 --name webserver nginx | |
https://www.mkyong.com/mac/mac-osx-what-program-is-using-port-80/ | |
Find out what is using port 80 | |
This /usr/sbin/httpd is listening on port 80, should be Apache server | |
$ sudo lsof -i :80 | |
$ sudo apachectl stop | |
More info: | |
http://www.szinet.com/node/3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment