Last active
May 26, 2018 11:36
-
-
Save dashjim/e8eb145ad94adc4a4779f40c6450a03b to your computer and use it in GitHub Desktop.
zshrc config for kaggle docker to run properly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Jim | |
1 kpython(){ | |
2 docker run -v $PWD:/tmp/working -w=/tmp/working --rm -it kaggle/python python "$@" | |
3 } | |
4 ikpython() { | |
5 docker run -v $PWD:/tmp/working -w=/tmp/working --rm -it kaggle/python ipython | |
6 } | |
7 kjupyter() { | |
8 # (sleep 1 && open "http://$(docker-machine ip docker2):8888")& | |
9 docker run --network='host' -v $PWD:/tmp/working -w=/tmp/working --rm -it kaggle/python:latest jupyter notebook --no- browser --allow-root --notebook-dir=/tmp/working | |
10 } | |
11 # https://hub.docker.com/_/mysql/ | |
12 startmysql() { | |
13 docker run --network="host" -v /home/craft/Documents/mysql_db_file:/var/lib/mysql --name mysql8 -e MYSQL_ROOT_PASSWORD=craft01 -d mysql:8 | |
14 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment