update
This commit is contained in:
20
README.md
20
README.md
@@ -53,6 +53,26 @@ cd docker-stacks/images/base-notebook
|
||||
docker buildx build -t hotwa/notebook:latest . -f Dockerfile
|
||||
```
|
||||
|
||||
## 修改jupyterhub启动notebook的路径映射
|
||||
|
||||
修改jupyterhub_config.py文件,修改卷的路径:
|
||||
|
||||
```python
|
||||
c.DockerSpawner.volumes = {
|
||||
"jupyterhub-user-{username}": notebook_dir,
|
||||
"/mnt/mydrive": "/home/jovyan/work/mydrive",
|
||||
"/mnt/mydrive/project/docker-jupyterhub/id_rsa": "/home/jovyan/.ssh/id_rsa",
|
||||
}
|
||||
```
|
||||
|
||||
## 启动notebook修改
|
||||
|
||||
启动notebook修改docker-compose.yml文件,修改notebook的基础镜像:
|
||||
|
||||
```yaml
|
||||
DOCKER_NOTEBOOK_IMAGE: hotwa/notebook:latest
|
||||
```
|
||||
|
||||
## Alternatives
|
||||
|
||||
- [rocker/binder](https://rocker-project.org/images/versioned/binder.html) -
|
||||
|
||||
Reference in New Issue
Block a user