From the course: Cisco DevNet Associate (200-901) Cert Prep 4: Application Deployment and Security

Unlock the full course today

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

How to deploy Docker on local machines

How to deploy Docker on local machines

From the course: Cisco DevNet Associate (200-901) Cert Prep 4: Application Deployment and Security

Start my 1-month free trial

How to deploy Docker on local machines

- [Instructor] Let's see how we could take a simple application and deploy it as a container on the machine. First, let's make a directory called test_app and CD into it. Since I've already created that directory, I'm not going to repeat that step, rather I am just going to change my directory into the test_app directory. Great. We will then install Python flask, because the application we're going to write is a flask web app. We'll do that with pip install flask. Again, I have already satisfied that requirement and notice that I'm using a virtual riv, which is done previously when I log into my host. Now let's take a look at the app. I have constructed this simple app.py file, which uses the flask module, construct a simple route, which are the root level, and just return the string "Hello world." And we will run it by itself. We'll run it in the debug mode as well as attached to all the IP addresses on the hose…

Contents