Useful Commands
docker build
- platform:
linux/amd64,linux/arm64Currently Kube does not have arm64 nodes. You can run
linux/amd64images on arm64 Macs under Vessel. - tag / t
docker images
- all / a: show all images
- quiet / q: only show image id
no-trunc: don’t truncate output
docker ps
- all / a: show all containers
- quiet / q: only show container id
Resource Management
- remove image:
docker rmi ${tag/name/img id} - force removal:
docker rmi -f - remove all images:
docker rmi -f $(docker images -aq) - remove all containers:
docker rm -vf $(docker ps -aq)