Create Custom Docker Image Flashcards

1
Q

High level steps in creating your own docker image

A

Base Image –> Docker Client –> Docker Server –> Usable Image

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

Flow of creating custom docker image

A
  1. Specify a base image (FROM)
  2. Commands to install additional s/w on base image (RUN)
  3. Specify command to run when container gets created (CMD)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What’s the command to build your own docker image?

A

“docker build .”, where “.” is the build context, means the files and folders which we want to encapsulate in the custom image we are building

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

How do you tag your image

A

“docker build devopsulting/redis:latest .”

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