Member-only story

Python HOW: Starting with Docker

Gabriel Harris Ph.D.
6 min readMar 1, 2020

--

Photo by Kaique Rocha from Pexels

Docker helps you to package up your project with all of the dependencies needed to run it from anywhere

Build, share and run any application, anywhere!”

Is it a Docker image or a container? 😕

Let’s clear this out straight away. You first build a Docker image by reading a set of instructions from a Dockerfile. Once you run this image, it’s called a container

Docker Engine 🚒

To do any thing Docker, you first need to install the Docker Engine. Docker Engine is available on a variety of Linux platforms, Mac and Windows through Docker Desktop, Windows Server, and as a static binary installation. You can have a look here and choose the one that works for your OS

To check that you have the engine installed, open a terminal and run docker version

Project Structure 📂

Assume your project has the following structure:

--

--

Gabriel Harris Ph.D.
Gabriel Harris Ph.D.

Written by Gabriel Harris Ph.D.

I’m an End-to-End Lead Data Scientist and Data Science Manager. My articles are love letters to my future self

Responses (2)

Write a response