Hi,
I would like to mount a windows network share in my jupyter notebook.
I have a setup with Jupyterhub and Jupyter Notebooks in Docker.
In my notebook docker images cifs-utils are installed:
RUN apt-get install cifs-utils keyutils -y
I connect to the JupyterHub server and start a notebook and in JupyterLab I opened the terminal and I executed a mount command:
mount.cifs -o user=Domainuser,domain=DOMAIN,rw,noauto, //domain.com/home /home/joyvan/nethome
But this command ends with the message:
Unable to apply new capability set.
I have to add the following options to the docker run command in JupyterHub setup:
–cap-add SYS_ADMIN --cap-add DAC_READ_SEARCH
How can i do this, nothing I have tried worked:
I have tried it as extra_create_kwargs, c.DockerSpawner.environment and client_kwargs:
c.DockerSpawner.extra_create_kwargs.update({ 'command': spawn_cmd })
c.DockerSpawner.client_kwargs = {'privileged': '' }
c.DockerSpawner.client_kwargs = {
'--cap-add': 'SYS_ADMIN',
'--cap-add': 'DAC_READ_SEARCH',
}
Thanks,
Bernhard