Docker Intro Flashcards

1
Q

What is docker swarm?

A

Clustering and scheduling too for dockers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

CE vs EE

A

Community Edition is free

Enterprise Edition is paid per node with management, support, and GUI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Docker version control syntax

A

YY.MM.release

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

command to get the docker version

A

docker version

Server response shows that it is running

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Command to get docker info

A

docker info

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an image?

A

The application we want to run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a container?

A

The instance of an image running as a process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the registry?

A

The default Docker Hub. Hosts public images.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Command to list containers

A

docker container ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Command to list ALL containers

A

docker container ls -a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

To remove a past container

A

docker container rm {id}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What happens when you ‘docker container run’

A
  1. Look for image if non checks repository
  2. Downloads
  3. Creates a new container
  4. Gives it a virtual IP and forwards port 80
  5. Starts container with CMD from the image dockerfile
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Command to see process list within a container

A

docker container top {container name}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Command to see config of a container

A

docker container inspect {container name}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Commend to get stats on a container

A

docker container stats {container name}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Command to enter CLI for a container

A

docker exec -it {container name} bash

17
Q

Docker Network Defaults

A

Each container connected to a private virtual network bridge
Each virtual network is routed through NAT on host IP
All containers can communicate with one another

18
Q

How to manage DNS names for IPs in containers

A

Use the container name and there is automatic DNS resolution

19
Q

How does Docker help to set up round robin

A

Automatically manage multiple containers to the same DNS

You can use –net-alias {container name} to alias the DNS