Skip to content

Instantly share code, notes, and snippets.

@piersharding
Created January 31, 2019 03:47
Show Gist options
  • Save piersharding/ae6f6a7192765d1200f8a92ff4a405f2 to your computer and use it in GitHub Desktop.
Save piersharding/ae6f6a7192765d1200f8a92ff4a405f2 to your computer and use it in GitHub Desktop.
Launching Python interpreter in a container for PyCharms (example)
#!/usr/bin/env bash
docker run --rm --net=host -e HOME=${HOME} -v /etc/passwd:/etc/passwd:ro --user=$(id -u) -v /snap:/snap -v ${HOME}:${HOME} -w ${HOME} -i python:3.6 python $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment