Skip to content

Instantly share code, notes, and snippets.

@mainyaa
Created June 15, 2018 01:23
Show Gist options
  • Save mainyaa/f05937a5feaccbd66c8d0ca1a2b3dcb5 to your computer and use it in GitHub Desktop.
Save mainyaa/f05937a5feaccbd66c8d0ca1a2b3dcb5 to your computer and use it in GitHub Desktop.
kaggle kernel jupyter notebook systemd conf file
[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