When I tried to open the jupyter notebook using docker-compose, I received the following error:
If anyone knows how to solve this problem, I would appreciate it if you could let me know.
Building jupyter
Traceback (most recent call last):
File "compose/cli/main.py", line 67, in main
File "compose/cli/main.py", line 126, perform_command
File "compose/cli/main.py", line 1070, in up
File "compose/cli/main.py", line 1066, in up
File "compose/project.py", line 615, in up
File "compose/service.py", line 346, in sense_image_exists
File "compose/service.py", line 1147, in build
compose.service.BuildError:(<Service:jupyter>, {'message':'invalid reference format'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "docker-compose", line 3, in <module>
File "compose/cli/main.py", line 78, in main
TypeError: can only concatenate str(not "dict") to str
[9413] Failed to execute script docker-compose
The docker-compose.yml contains:
version:"3"
services:
jupyter:
build:.
volumes:
- $PWD: /tmp/working
working_dir: /tmp/working
ports:
- "8888:8888"
command: jupyter notebook --ip=0.0.0.0 --allow-root --LabApp.token='"
The container_name: in the docker-compose.yml file was set to any name and was able to run it.
© 2024 OneMinuteCode. All rights reserved.