From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Using a Dockerfile - Kubernetes Tutorial
From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep
Using a Dockerfile
- Next task, you are going to use a Docker file. The Docker file is provided in the course Git repository and you need to create an image with the name, myapp:1.0. And then you export this image to a tar file ensuring it is OCI compliant. Let's check it out. All right, so Docker file ls Do. Where's my docker file? Find dot minus name Dockerfile. Docker file, Docker file. That sounds good. So Docker file. For this task, really the purpose is that you create the image. Which Docker file you use, that doesn't really matter because this is not about Docker, this is about creating images. So docker build minus t myapp:1.0 on dot. That's what this is all about. And then you need to save the image to a tar file, ensuring it is OCI compliant. Hey, ensuring it is OCI compliant. Don't worry about that because Docker images are OCI compliant by default. So we don't have to do anything about that. We just use docker save minus h pipe less. And what do we see? We see docker save image minus o…
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Module 7: Sample exam introduction13s
-
(Locked)
Learning objectives47s
-
(Locked)
Exam tips5m 9s
-
(Locked)
Tasks overview6m 54s
-
(Locked)
Grading the exam57s
-
(Locked)
Working with namespaces5m 23s
-
(Locked)
Finding pods1m 38s
-
(Locked)
Creating a ConfigMap5m 31s
-
(Locked)
Using a sidecar4m 56s
-
(Locked)
Using probes1m 30s
-
(Locked)
Creating a deployment4m 48s
-
(Locked)
Exposing applications3m 24s
-
(Locked)
Managing NetworkPolicy4m 44s
-
(Locked)
Using storage5m 37s
-
(Locked)
Using Helm1m 36s
-
(Locked)
Managing resource restrictions2m 18s
-
(Locked)
Creating canary deployments5m 22s
-
(Locked)
Defining container restrictions4m 6s
-
(Locked)
Using a Dockerfile2m 26s
-
(Locked)
Using ServiceAccount2m 32s
-
(Locked)
-