Skip to content

Instantly share code, notes, and snippets.

@cig0
Last active April 23, 2024 23:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save cig0/40c1a45e4fcd1a8c96453c8c892f0e1b to your computer and use it in GitHub Desktop.
Save cig0/40c1a45e4fcd1a8c96453c8c892f0e1b to your computer and use it in GitHub Desktop.
Docker #docker

Docker cheatsheet

Command Description
Ctrl-p + Ctrl-q Disconnects from current interactive container
docker ps Lists the current running containers
docker images Lists available containers
docker stop Stops the specified container
docker port Lists the ports exposed on the specified container
docker network inspect Displays the net information for the specified container
docker network ls Lists the available networks. The Network ID corresponds to the bridge interface on the host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment