docker Flashcards
How to display all the containers
docker ps
How to get a new image?
docker pull [image]
how to start and how to stop a container?
docker start [Image] / docker stop [containerId]
What is a Container?
Container is a runnig environment for an IMAGE
How how to list all the downloaded images?
docker images
how to run a container on dettached mode?
docker run -d [image]
List Running and stopped containers
docker ps -a
How to pull a specific image version?
by adding a tag after the image name
how to pull an image and starts a container?
docker run redis
Container port dvs HOST port
You can duplicate Container port but not Host ports
You have to bind your computer port (host port) to the container ports
How to Delete all the images?
docker system prune
[Actualizado] How to delete specific image?
docker rm imageName
how to bind a host port to a container post?
docker ps -p6000:6123
how to open the interactive terminal?
fdockdocker exec -it [containerId] /bin/bash
How to display all docker networks?
docker network ls