From the course: Docker for Data Scientists

Unlock the full course today

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

Running a container

Running a container

From the course: Docker for Data Scientists

Start my 1-month free trial

Running a container

- [Instructor] A Container is a running Docker image. So in this section on containers, let's create our own Docker file that we'll run in a container. Let's use the Ubuntu image, and since we are machine learning engineers, let's add Python on top. You could just as easily add a. We want to base our image on Ubuntu Version 18.10. We then want to install any security updates on top of that, and then install Python. So I go to my directory 02 02 in the Exercise Files, I type atom Dockerfile. And so it's from Ubuntu version 18.10. we want to install any security updates, So that's run apt update. We then want to install Python without any promises, So that's run apt install with a -Y flag Python3. So what we can also do is combine this as a single command. So we only have a single layer to our image, so I'm going to do that, so I delete the run, and I add two apt install sign, so that it's going to do both install the security update, and install Python. So I'm going to save that. So…

Contents