Skip to main content

Docker Commands

  • Docker login
$ docker login
  • Docker login info
$ cat /home/ubuntu/.docker/config.json
  • List docker images
$ docker images
  • List running docker containers
$ docker ps
  • List all docker containers in the host
$ docker ps -a
  • Tag a image
$ docker tag busybox:1.28.4 podofminerva.azurecr.io/busybox:latest
  • Pull the image
$ docker pull busybox:1.28.4
  • Push the images to the registry
$ docker push podofminerva.azurecr.io/busybox:latest