Useful Commands

docker build

  1. platform: linux/amd64, linux/arm64

    Currently Kube does not have arm64 nodes. You can run linux/amd64 images on arm64 Macs under Vessel.

  2. tag / t

docker images

  1. all / a: show all images
  2. quiet / q: only show image id
  3. no-trunc: don’t truncate output

docker ps

  1. all / a: show all containers
  2. quiet / q: only show container id

Resource Management

  1. remove image: docker rmi ${tag/name/img id}
  2. force removal: docker rmi -f
  3. remove all images: docker rmi -f $(docker images -aq)
  4. remove all containers: docker rm -vf $(docker ps -aq)