Skip to content

Commit a46e05b

Browse files
committed
Add how to specify UID/GID of jupyter user
1 parent 255444e commit a46e05b

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

README.adoc

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
:lang: ja
33
:source-highlighter: rouge
44
:author: 国立情報学研究所
5-
:revdate: 2022年7月27日
5+
:revdate: 2022年8月17日
66
:revnumber: 3.1-SNAPSHOT版
77
:doctype: book
88
:version-label:
@@ -480,6 +480,27 @@ image::jupyterhub/signin.png[align=center, scaledwidth=50%]
480480

481481
image::jupyterhub/notebooks.png[align=center]
482482

483+
[IMPORTANT]
484+
====
485+
Linux環境において、マウントしたホームディレクトリ( `/home/jupyter` )の所有者が適切に設定されず、権限エラーが発生する場合がある。
486+
487+
----
488+
PermissionError: [Errno 13] Permission denied: '/home/jupyter/.local'
489+
----
490+
491+
本問題が生じた場合には、実行ユーザのUID/GIDを以下の環境変数で指定し、コンテナを再起動すること。
492+
493+
.docker-compose.yml
494+
[source, diff]
495+
----
496+
jupyterhub:
497+
...
498+
environment:
499+
- LOCAL_UID=<uid> # id -u
500+
- LOCAL_GID=<gid> # id -g
501+
----
502+
====
503+
483504
<<<
484505
==== Learning Lockerからステートメントを取得
485506
ノートブック「link:jupyterhub/notebooks/get_statements_from_learninglocker.ipynb[get_statements_from_learninglocker]」を活用し、Learning LockerのAPIを使用したステートメント取得が可能であることを確認する。 +

0 commit comments

Comments
 (0)