Skip to content

Instantly share code, notes, and snippets.

@lparolari
Created December 31, 2020 08:56
Show Gist options
  • Save lparolari/24437946223110d31fb968bf971ccbff to your computer and use it in GitHub Desktop.
Save lparolari/24437946223110d31fb968bf971ccbff to your computer and use it in GitHub Desktop.
On the fly docker commands

Docker Util

Compile from .md to .pdf with pandoc

docker run --rm --volume "`pwd`:/data" --user `id -u`:`id -g` pandoc/latex README.md -o README.pdf

Start a jupyter notebook server

With tensorflow installed

docker run -p 8888:8888 -v "`pwd`:/home/jovyan/work" jupyter/tensorflow-notebook start-notebook.sh --NotebookApp.notebook_dir="/home/jovyan/work"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment