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

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…

Contents