Skip to content

Instantly share code, notes, and snippets.

@Dizolivemint
Last active November 17, 2021 23:52
Show Gist options
  • Save Dizolivemint/7c5e29ab6e338c55ddb75db19934d6a1 to your computer and use it in GitHub Desktop.
Save Dizolivemint/7c5e29ab6e338c55ddb75db19934d6a1 to your computer and use it in GitHub Desktop.
Docker Commands

docker build . will run the Dockerfile to create an image
docker images will print all the available images
docker run {IMAGE_ID} will run a container with the image
docker ps will print all the running containers
docker kill {CONTAINER_ID} will terminate the container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment