title: problem running docker image using jupyter notebook
body: <p>I have a jupyter notebook and a data file in a folder. I made a Dockerfile and wrote the following lines </p>
  
  <pre><code>FROM jupyter/base-notebook
  
  ARG export_file=FooD_Kind.csv
  
  RUN pip install jupyter
  
  RUN pip install numpy
  
  RUN pip install matplotlib
  
  RUN pip install pandas
  
  RUN pip install pulp
  
  COPY $export_file FooD_Kind.csv
  
  COPY task_4kind.ipynb /
  
  CMD ["jupyter notebook", "task_4kind.ipynb"]
  </code></pre>
  
  <p>I can successfully build an image using <code>docker build -t nameofimage</code> But when I do <code>docker run -it nameofimage</code>. I get an error <code>[FATAL tini (7)] exec jupyter notebook failed: No such file or directory</code> .</p>
  
  <p>How do I run this jupyter notebook in docker?</p>
  
  <p>EDIT: </p>
  
  <p>I tried two replacements on the last line,<br>
  I replaced the last line with </p>
  
  <pre><code># Start the jupyter notebook
  ENTRYPOINT ["jupyter", "notebook", "--ip=*"]
  </code></pre>
  
  <p>It runs and gives a token on the screen but when I paste the token on localhost, It gives invalid credentials error</p>
  
  <p>then I replaced the last line with </p>
  
  <pre><code>CMD jupyter notebook --port=8888 --no-browser --ip=0.0.0.0 --allow-root
  </code></pre>
  
  <p>It runs and gives a token on the screen but when I paste the token on localhost, It gives invalid credentials error</p>