Skip to content

Commit b1e4066

Browse files
author
Scott Sanderson
authored
Merge pull request #1871 from njgraham/docker_jupyter_allow_root
Add '--allow-root' to jupyter command to avoid error starting container.
2 parents 47cf269 + 55305e1 commit b1e4066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

etc/docker_cmd.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# generate configuration, cert, and password if this is the first run
55
#
66
if [ ! -f /var/tmp/zipline_init ] ; then
7-
jupyter notebook --generate-config
7+
jupyter notebook --allow-root --generate-config
88
if [ ! -f ${SSL_CERT_PEM} ] ; then
99
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
1010
-subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=127.0.0.1" \
@@ -14,6 +14,6 @@ if [ ! -f /var/tmp/zipline_init ] ; then
1414
touch /var/tmp/zipline_init
1515
fi
1616

17-
jupyter notebook -y --no-browser --notebook-dir=${PROJECT_DIR} \
17+
jupyter notebook --allow-root -y --no-browser --notebook-dir=${PROJECT_DIR} \
1818
--certfile=${SSL_CERT_PEM} --keyfile=${SSL_CERT_KEY} --ip='*' \
1919
--config=${CONFIG_PATH}

0 commit comments

Comments
 (0)