Docker Intro Flashcards
What is docker swarm?
Clustering and scheduling too for dockers.
CE vs EE
Community Edition is free
Enterprise Edition is paid per node with management, support, and GUI
Docker version control syntax
YY.MM.release
command to get the docker version
docker version
Server response shows that it is running
Command to get docker info
docker info
What is an image?
The application we want to run
What is a container?
The instance of an image running as a process
What is the registry?
The default Docker Hub. Hosts public images.
Command to list containers
docker container ls
Command to list ALL containers
docker container ls -a
To remove a past container
docker container rm {id}
What happens when you ‘docker container run’
- Look for image if non checks repository
- Downloads
- Creates a new container
- Gives it a virtual IP and forwards port 80
- Starts container with CMD from the image dockerfile
Command to see process list within a container
docker container top {container name}
Command to see config of a container
docker container inspect {container name}
Commend to get stats on a container
docker container stats {container name}