Skip to content

Instantly share code, notes, and snippets.

@kulas
Last active October 26, 2018 15:09
Show Gist options
  • Save kulas/69fdf981962573135191ac20bd9bbc65 to your computer and use it in GitHub Desktop.
Save kulas/69fdf981962573135191ac20bd9bbc65 to your computer and use it in GitHub Desktop.
# 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