tags:
- docker
permalink: what-is-docker
title: What is Docker?
Docker is a platform for developing, shipping, and running applications in containers.
Docker Desktop does not configure its CLI by default.
Remove dangling images - unused images with no names or tags.
docker rmi $(docker images -f "dangling=true" -q)
List local Docker images.
docker images
Explore an image using cd
, ls
, etc.
docker run -it --rm ${IMAGE_NAME} /bin/sh
Use a personal access token to authenticate to Docker Hub.
Docker adds 128 to Node error codes, making it harder to debug.
For example, if you see error 243, subtract 128 from it to get the actual error code 115: 243 - 128 = 115
Subtract 128 from a Docker error code to calculate the actual error code.