Reminder: A Container is a running instance of an Image
Docker CLI commands
Command | Meaning |
---|---|
docker info | This command displays system wide information regarding the Docker installation |
docker pull | download an image from dockerhub |
docker images | show list of locally available docker image |
docker start | start container |
docker stop | stop container |
docker run | pulls image, make a container from image and runs it |
docker run -d | running in detached mode |
docker run -p: | port binding e.g. -p6000:6379 |
docker ps | show a list of running containers |
docker ps -a | show a list of running and stopped containers |
docker logs | gets the log from the running container |
docker exec -it /bin/bash | interactive terminal |
docker rename | rename a container |