Skip to the content.

Modern Machine Learning with Python and Docker

A modern approach to data science and machine learning using Python & Docker.

Goals

Requirements

Note: This has only been tested on macOS. Linux support is assumed. Windows support is untested.

Usage

Basic usage

make docker-run

Automatically pulls the latest image from Docker Hub the first time it is run. Subsequent runs will use local copy and will be faster. Copy the link to the Jupyter Lab server and paste it into a browser of your choice to access the Jupyter Lab.

By default, the current working directory $PWD will be used as the local directory that will be mapped to /root/work directory on the Docker container.

Specify Folder

make docker-run host_volume=/full/path/to/local/folder

Use the host_volume option to specify the local folder to be used by the Docker container. The specified folder will be available under /root/work in the Docker container.

Build Docker Image

make docker-build

Push Docker Image to Docker Hub

This step requires creating an account and a repository on Docker Hub (free for public images). Update the [docker_hub_repo]{.title-ref}[ variable in ]{.title-ref}[Makefile]{.title-ref}` to point to the correct repo on Docker Hub.

make docker-push

Features

Installed Packages

Python Development

Basic Python data science packages

To Do

General

User and Groups

Git

Jupyter Lab