docker push
- Uploads a container image to a registry like Docker Hub. docker pull
- Downloads container images from a registry like Docker Hub. docker images
- Lists container images that have been downloaded locally. docker rmi
- Deletes/removes a Docker container image from the machine.
docker run
- Launches a new container from a Docker image. docker ps
- Prints out a list of containers currently running. docker logs
- Shows stdout/stderr logs for a specific container. docker stop/rm
- Stops or totally removes a running container.
docker build
- Builds a Docker image by reading build instructions from a Dockerfile.
--platform=linux/amd64
flag to build for the correct architecture.docker volume create
- Creates a persisted and managed volume that can outlive containers. docker run -v
- Mounts a volume into a specific container to allow persisting data past container lifecycle.
docker network create
- Creates a custom virtual network for containers to communicate over. docker run --network=<name>
- Connects a running container to a Docker user-defined network.
docker exec
- Execute a command in an already running container. Useful for debugging/inspecting containers: