-
Notifications
You must be signed in to change notification settings - Fork 17
Description
First of all great work of yours! appreciate it.
Though I met some problems when trying to install a docker image as a KernelSpec (tensorflow/tensorflow:latest-gpu to be precise).
got an Error
ValueError: kernelspec already exists: /home/lubricy/.local/share/jupyter/kernels
it turns out that image.attrs['ContainerConfig']['Hostname'] is just an empty string.
I'm not quite familiar with docker image attrs but perhaps a sanitized image tag (e.g. tensorflow_tensorflow_latest-gpu)would work better here? or perhaps rather let user to decide the name/id of there kernel?
Another unrelated thing is I think it would be nice if dockernel start (and dockernel install) could accept docker cli flags (e.g. -v VOLUME , -p PORT, -u USER etc.). a particular flag I'd like to use is --gpus all but it seems like it's not natively supported by py-docker upstream. Maybe give python-on-whales a try?