Adding Jupyterlab to openmc container

I attempted to build an openmc container with jupyterlab added in using the Dockerfile below and obtained the error

/bin/sh: 1: [“jupyter”,: not found

Any help will be appreciated.

#Dockerfile

FROM openmc/openmc:latest
RUN git clone GitHub - openmc-dev/openmc-notebooks: Example Jupyter notebooks for OpenMC /root/OpenMC/openmc/notebooks

RUN pip install jupyterlab

CMD [“jupyter”, “lab”, “–notebook-dir=/root/OpenMC/openmc”, “–port=8888”, “–no-browser”, “–ip=0.0.0.0”, “–allow-root”]

#To build I used

docker build -t openmcjupyter .

#and to run

docker run -p 8888:8888 openmcjupyter

Issue resolved →

Changed CMD line in Dockerfile

CMD [“jupyter”, “lab”, “–notebook-dir=/root/OpenMC/openmc”, “–port=8888”, “–no-browser”, “–ip=0.0.0.0”, “–allow-root”]

to

CMD jupyter-lab --notebook-dir=/root/OpenMC/openmc --port=8888 --no-browser --ip=0.0.0.0 --allow-root

1 Like