Created
June 15, 2018 01:23
-
-
Save mainyaa/f05937a5feaccbd66c8d0ca1a2b3dcb5 to your computer and use it in GitHub Desktop.
kaggle kernel jupyter notebook systemd conf file
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
[Unit] | |
Description=Jupyter Service | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
TimeoutStartSec=0 | |
Restart=on-failure | |
ExecStartPre=-/usr/bin/docker stop jupyter | |
ExecStartPre=-/usr/bin/docker rm jupyter | |
ExecStartPre=-/bin/mkdir -p /var/local/jupyter | |
ExecStartPre=/usr/bin/docker pull kaggle/python | |
ExecStart=/usr/bin/docker run -v /home/kazuyuki_mori/.jupyter:/root/.jupyter -v /var/local/jupyter:/var/local/jupyter -w=/var/local/jupyter -p 8888:8888 --name jupyter -d kaggle/python jupyter notebook --no-browser --ip="*" --notebook-dir=/var/local/jupyter --allow-root | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment