Thanks for this tip, I was looking for similar functionality, and your post pointed me in the right direction!
I dug into it and I think your problem is related to the fact that the functionality was added only in the 6.1 release, relatively recently. So depending on what version of the image you’re building from, it might not yet be implemented. See https://github.com/jupyter/notebook/pull/5372/
2 Likes