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
2
Q
Flow of creating custom docker image
A
- Specify a base image (FROM)
- Commands to install additional s/w on base image (RUN)
- Specify command to run when container gets created (CMD)
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
4
Q
How do you tag your image
A
“docker build devopsulting/redis:latest .”