Docker Flashcards

1
Q

Ducker Run

A

Tells Docker daemon to deploy the specified image to a docker Host and Start to run(as a container)D

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

Docker Build

A

Converts a dockerfile or file/program into an image using the specifications of the dockerfile

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

Docker Pull

A

asks the daemon to ‘Look for’ and download the specified image either from docker Hub or a specified Location

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

Docker Push

A

Upload a file up to a Repository as specified

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

Writable layers

A

Writable layers are linked to the lifecycle of the container.
They don’t persist.

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

docker run command

A

~$ docker run 8080:80 containerName

where Tcp80 is the port on the container and 8080, the host port

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

run docker on detached mode

A

~$ docker run -p 8080:80 -d containerImageName

where Tcp80 is the port on the container and 8080, the host port

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

Execute commands inside container

A

$ docker exec -it RunningContainer_id commands

-it is a combination of both the -i and -t command options

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

docker processes commands

A

docker ps

all === -aux

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

$ docker ps -a

A

shows all container processes

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

the -t option

A

-t option, which allocates a pseudo-TTY to the container. The -t option is typically used when you want to interact with the container’s shell or terminal. However, it’s not typically used with -d (detached) because detached containers don’t have an interactive terminal.

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