I have a server setup in my home network that I prefer to run Docker Compose files on to start JupyterLab. I had an instance running that was working perfectly for the past couple of years, but something isn’t working correctly when making the switch to Docker Stacks and quay.io.
My docker-compose.yml file looks like this:
version: '3'
services:
jupyterlab:
container_name: jupyter-datascience
image: quay.io/jupyter/datascience-notebook:latest
restart: always
volumes:
- ./notebooks:/home/jovyan/work
environment:
- JUPYTER_TOKEN=token
ports:
- '8888:8888'
And when I run this simple compose file on my server I’m getting the following error, whenever I try to save a file into the “work” directory:
Permission denied: work/Untitled.ipynb
I know this has to do with directory permissions, but am unsure how to set those in a Docker Compose file to get this to work correctly.