Skip to content

Instantly share code, notes, and snippets.

@SteveBate
SteveBate / Docker commands.md
Last active November 26, 2023 19:55
Docker

build a docker image from a Dockerfile using the files in the current (.) directory

  • docker image build -t stevebate/devrepo:tc-v1 .

list the docker images on disk

  • docker images

list of containers (instances)

  • docker ps
  • docker container ls -a (-a flag to see exited containers)