Docker
Tips and tricks working with Docker
CLI Commands
Download Image
docker pull <image_name>:<tag>Exec into Container
docker exec -it <name> /bin/bashThe
nameis what you used when launching the container-itlaunches an interactive shell (bash in this case)
Kill a Running Container
docker rm <name> --forceThe
nameis what you used when launching the container
List Local Images
docker image lsList Running Containers
docker ps -aLogin to a Registry
docker login --username <username> --password-stdin <registry_name>Run Docker Image Locally
docker run --platform linux/amd64 -it --name <whatever> <image_name>--platform linux/amd64(Optional) Makes the warning go away when executing x86 images on ARM
Last updated
Was this helpful?