Asit
Asit

Reputation: 31

executable file not in path for jupyter notebook in docker container

My Dockerfile looks like this.

FROM python:3
RUN apt-get update && apt-get install -y python3-pip
COPY requirements.txt .
RUN pip install -r requirements.txt

#install jupyter
RUN useradd -ms /bin/bash demo

#change to new user
USER demo

#set the container working directory to user home folder
WORKDIR /home/demo


#start the jupyter notebook
ENTRYPOINT ["jupyter","notebook", "--ip=0.0.0.0"]`

It successfully creating an image. But while running I am getting error like this.

container_linux.go:349: starting container process caused "exec: \"jupyter\": executable file not found in $PATH": unknown.

Any insight how to solve this

Upvotes: 3

Views: 2486

Answers (1)

Cyril G.
Cyril G.

Reputation: 2017

You are using python3 as a base image, jupyter is not install by default. You should have a look to jupyter image instead: Jupyter Docker Image

Upvotes: 1

Related Questions