Docker Community Forums

Share and learn in the Docker community.

Docker-Compose with command line

docker

(Tomzko) #1

Hi everyone, im trying to add a command line to the jupyter/datascience-notebook but i get some output error that i cant figure out why has problems. the code y have is:

version:                "3"
services:
  datascience-notebook:
      build: .
      image:            jupyter/datascience-notebook
      volumes:
        - /home/tomas/Jupyter/notebooks:/home/jovyan
      ports:
        - "28448:8888"
      command: --NotebookApp.password= 'sha1:74ba40f8a388:c913541b7ee99d15d5ed31d4226bf7838f83a50e'
      container_name: datascience-notebook-container

the output error (exc. docker-compose up):

Recreating datascience-notebook-container ... done
Attaching to datascience-notebook-container
datascience-notebook-container | [FATAL tini (7)] Executing child process '--NotebookApp.password=sha1:74ba40f8a388:c913541b7ee99d15d5ed31d4226bf7838f83a50e' failed: 'No such file or directory'