Skip to content

Commit c5af48c

Browse files
committed
FIX: sets default ip to 0.0.0.0
1 parent 3c272a0 commit c5af48c

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# pull request on our GitHub repository:
66
# https://github.com/kaczmarj/neurodocker
77
#
8-
# Timestamp: 2017-08-25 09:59:01
8+
# Timestamp: 2017-08-25 12:18:04
99

1010
FROM neurodebian:stretch-non-free
1111

@@ -199,9 +199,7 @@ RUN bash -c "source activate afni27 && python -m ipykernel install --user --name
199199
RUN bash -c "source activate neuro && python -c 'from nilearn import datasets; haxby_dataset = datasets.fetch_haxby()' "
200200

201201
# User-defined instruction
202-
RUN bash -c "echo c.NotebookApp.ip = \'*\' > ~/.jupyter/jupyter_notebook_config.py"
202+
RUN bash -c "echo c.NotebookApp.ip = \'0.0.0.0\' > ~/.jupyter/jupyter_notebook_config.py"
203203

204-
EXPOSE 8888
205-
206-
WORKDIR /home/neuro
204+
WORKDIR /opt/tutorial
207205

create_dockerfile.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ docker run --rm kaczmarj/neurodocker generate -b neurodebian:stretch-non-free -p
2929
add_to_path=False \
3030
--instruction "RUN bash -c \"source activate afni27 && python -m ipykernel install --user --name afni27 --display-name Py2-afni \" " \
3131
--instruction "RUN bash -c \"source activate neuro && python -c 'from nilearn import datasets; haxby_dataset = datasets.fetch_haxby()' \" " \
32-
--instruction "RUN bash -c \"echo c.NotebookApp.ip = \'*\' > ~/.jupyter/jupyter_notebook_config.py\" " \
33-
--expose 8888 \
34-
--workdir /home/neuro \
32+
--instruction "RUN bash -c \"echo c.NotebookApp.ip = \'0.0.0.0\' > ~/.jupyter/jupyter_notebook_config.py\" " \
33+
--workdir /opt/tutorial \
3534
--no-check-urls > Dockerfile

0 commit comments

Comments
 (0)