From the course: Deploying Scalable Machine Learning for Data Science

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Building Docker images with Dockerfiles

Building Docker images with Dockerfiles

From the course: Deploying Scalable Machine Learning for Data Science

Start my 1-month free trial

Building Docker images with Dockerfiles

- [Instructor] Let's take a look at the kinds of commands we can use to construct a Docker image. Building an image is one of the common tasks we perform with the Docker client. One of the three main components of the Docker platform. The first step to building a Docker image is to create a Docker file which is a text file with commands that indicate what components should be included in the image. Now when we execute the Docker file using the Docker BUILD command we get as a result a Docker image. We usually start our Docker files with a FROM command. The FROM command loads a base image that we start with. So here are three examples of what a FROM command can look like. FROM ubuntu, FROM ubuntu:14.04, and FROM alpine. The first will load the latest version of Ubuntu available in the Docker repository. The second command will load a specific version. In this case version 14.04. Now, if you want to make sure your container runs a particular version of the operating system then you…

Contents