Skip to content

Instantly share code, notes, and snippets.

@kingand
kingand / jupyter-docker.md
Last active March 2, 2019 23:16
Run Jupyter Notebook in a Docker container

Jupyter Notebooks with Docker

Purpose

This gist explains how to run the Jupyter Notebooks server and Python kernel within a Docker container instead of installing it locally.

Instructions

Run the following command where <local_notebooks_dir> is the directory where you store your Jupyter Notebooks on your local machine. This directory will be exposed within the Jypter Notebooks web client.

@kingand
kingand / docker-cheatsheet.md
Last active March 12, 2023 19:29
List of common Docker commands

Docker Cheatsheet

The purpose of this Gist is to provide a quick list of common Docker commands. This information was pulled from the summary at the bottom of Part 2 of the official Docker tutorial: https://docs.docker.com/get-started/part2

Running containers

Run "friendlyname" mapping port 4000 to 80

$ docker run -p 4000:80 friendlyhello

Same thing, but in detached mode

@kingand
kingand / gist:ff301bc5b740abb43cd69350d9578d9d
Last active October 28, 2024 22:02
GPU-Enabled Docker Container on Windows 11

GPU-Enabled Docker Container (Linux) on Windows 11 (WSL)

Assumptions

  1. Windows 11 running Windows Subsystem for Linux (WSL) version 2 with Debian 11
  2. NVidia Windows 11 driver installed
  3. No need to install NVidia Linux driver within WSL (source)

Prerequisites

  1. Open the Debian terminal (e.g., launch Debian from Windows menu)
  2. Perform distribution update/upgrade

RPi Zero (1W) Setup as Container Agent

Prerequisites

SSH Key Setup

Windows Client

  1. Generate SSH key using ED25519 algorithm.