Containers Flashcards

1
Q

What is the difference between windows and hyper-v containers?

A

Windows containers share the kernal

Hyper-V provides isolation at the container level (multi-tenant environments)

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

What is the client side component of docker?

A

docker.exe

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

What is the server side component of docker?

A

dockerd.exe

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

How do you install docker on Nano server with PoSH?

A

Import-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Package -Name docker -ProviderName DockerMsftProvider -Force

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

What is the docker command to create an image from an existing container?

A

docker commint

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

What is the docker command to stop a running container?

A

docker stop

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

What is the docker command to view container state and settings?

A

docker inspect

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

What is the docker command to delete a container?

A

docker rm

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

What is the docker command to see all containers?

A

docker ps -a

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

What is the docker command to see only running containers?

A

docker -ps

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

What are tagged images in docker?

A

Versions

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

What is the docker create a persistent container from an image?

A

docker run ping -t localhost

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

What docker command allows you to run a command in a container?

A

docker exec

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