From the course: Docker Essential Training
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Sourcing other Docker images with FROM - Docker Tutorial
From the course: Docker Essential Training
Sourcing other Docker images with FROM
- [Instructor] All right, the first Docker file we're going to dive into is the FROM command. FROM specifies the base image, a container image that your new Dockerimage will be created from. The example shown here shows the most common form of the FROM command, the word "FROM" followed by the name of the base image, or "Ubuntu", in this example. In this form, the latest version of the container image available will be chosen. In our container run times video, we learned that we would need to create a Linux root file system if we were going to create a container image from scratch. Base images simplify this by allowing us to select an image that already has this root file system and other useful software and configurations included. Behind the scenes, when Docker encounters the FROM statement, it will take the layers of the base image that you provided and puts them underneath the first layer of your new image. Remember…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Introduction to Dockerfiles1m
-
(Locked)
The anatomy of a Dockerfile4m 37s
-
(Locked)
Sourcing other Docker images with FROM4m 32s
-
(Locked)
Building your first image3m 59s
-
(Locked)
Adding and copying files with COPY and ADD3m 51s
-
(Locked)
Updating the image5m 22s
-
(Locked)
Customizing your Docker image with RUN7m 46s
-
(Locked)
Starting your app with ENTRYPOINT9m 25s
-
(Locked)
"Starting" your app with CMD7m
-
(Locked)
Adding variables with ENV and ARG9m 39s
-
(Locked)
Other helpful Dockerfile commands5m 36s
-
(Locked)
Multi-stage builds9m 57s
-
(Locked)
Multi-platform images15m 10s
-
(Locked)
Multi-app images8m 8s
-
(Locked)
Challenge: Build and run your first image2m 1s
-
(Locked)
Solution: Build and run your first image5m 54s
-
-
-
-
-
-
-
-