Jupyter notebook with poetry give error: [Errno 13] Permission denied: '/home/jovyan/.local/share/jupyter/runtime'

You’ve switched to USER root at the start which means all your RUN commands will create root owned files/directories. Try switching back to USER ${NB_UID} before running any commands that affect the home directory, or alternatively there’s a fix-permissions "/home/${NB_USER}" script you can run, for example:

3 Likes