-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Unable to run docker compose
following the instructions: /opt/conda/envs/homl3/bin/jupyter directory missing
#142
Comments
An investigation detail that could be useful: running the image and inspecting the container with ~ docker run -it --rm --runtime=nvidia --gpus all ageron/handson-ml3:latest-gpu /bin/bash
________ _______________
___ __/__________________________________ ____/__ /________ __
__ / _ _ \_ __ \_ ___/ __ \_ ___/_ /_ __ /_ __ \_ | /| / /
_ / / __/ / / /(__ )/ /_/ / / _ __/ _ / / /_/ /_ |/ |/ /
/_/ \___//_/ /_//____/ \____//_/ /_/ /_/ \____/____/|__/
You are running this container as user with ID 1000 and group 1000,
which should map to the ID and group for your user on the Docker host. Great!
/sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
devel@99e4901df358:~/handson-ml3$ conda env list
bash: conda: command not found Not sure why FWIW ~ which jupyter
/usr/local/bin/jupyter |
Digging down further I faced a similar issue when building the image locally:
This PR fixes the issue: #144 Here is a sample output: docker compose up
WARN[0000] /home/vasilegorcinschi/repos/handson-ml3/docker/docker-compose.yml: `version` is obsolete
[+] Running 1/1
✔ Container handson-ml3 Created 0.1s
Attaching to handson-ml3
handson-ml3 | [I 2024-06-22 00:56:45.071 ServerApp] jupyter_lsp | extension was successfully linked.
handson-ml3 | [I 2024-06-22 00:56:45.074 ServerApp] jupyter_server_mathjax | extension was successfully linked.
handson-ml3 | [I 2024-06-22 00:56:45.076 ServerApp] jupyter_server_terminals | extension was successfully linked.
handson-ml3 | [I 2024-06-22 00:56:45.079 ServerApp] jupyterlab | extension was successfully linked.
handson-ml3 | [I 2024-06-22 00:56:45.079 ServerApp] nbdime | extension was successfully linked.
handson-ml3 | [I 2024-06-22 00:56:45.080 ServerApp] Writing Jupyter server cookie secret to /home/devel/.local/share/jupyter/runtime/jupyter_cookie_secret
handson-ml3 | [I 2024-06-22 00:56:45.592 ServerApp] notebook_shim | extension was successfully linked.
handson-ml3 | [I 2024-06-22 00:56:45.611 ServerApp] notebook_shim | extension was successfully loaded.
handson-ml3 | [I 2024-06-22 00:56:45.613 ServerApp] jupyter_lsp | extension was successfully loaded.
handson-ml3 | [I 2024-06-22 00:56:45.613 ServerApp] jupyter_server_mathjax | extension was successfully loaded.
handson-ml3 | [I 2024-06-22 00:56:45.613 ServerApp] jupyter_server_terminals | extension was successfully loaded.
handson-ml3 | [I 2024-06-22 00:56:45.615 LabApp] JupyterLab extension loaded from /opt/conda/envs/homl3/lib/python3.10/site-packages/jupyterlab
handson-ml3 | [I 2024-06-22 00:56:45.615 LabApp] JupyterLab application directory is /opt/conda/envs/homl3/share/jupyter/lab
handson-ml3 | [I 2024-06-22 00:56:45.615 LabApp] Extension Manager is 'pypi'.
handson-ml3 | [I 2024-06-22 00:56:45.617 ServerApp] jupyterlab | extension was successfully loaded.
handson-ml3 | [I 2024-06-22 00:56:45.709 ServerApp] nbdime | extension was successfully loaded.
handson-ml3 | [I 2024-06-22 00:56:45.709 ServerApp] Serving notebooks from local directory: /home/devel/handson-ml3
handson-ml3 | [I 2024-06-22 00:56:45.709 ServerApp] Jupyter Server 2.14.1 is running at:
handson-ml3 | [I 2024-06-22 00:56:45.709 ServerApp] http://2674095b7bd8:8888/lab?token=1d798602e6f6fc421f80273a15b3b12d10a1d39e050942e0
handson-ml3 | [I 2024-06-22 00:56:45.709 ServerApp] http://127.0.0.1:8888/lab?token=1d798602e6f6fc421f80273a15b3b12d10a1d39e050942e0
handson-ml3 | [I 2024-06-22 00:56:45.709 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
handson-ml3 | [C 2024-06-22 00:56:45.711 ServerApp]
handson-ml3 |
handson-ml3 | To access the server, open this file in a browser:
handson-ml3 | file:///home/devel/.local/share/jupyter/runtime/jpserver-1-open.html
handson-ml3 | Or copy and paste one of these URLs:
handson-ml3 | http://2674095b7bd8:8888/lab?token=1d798602e6f6fc421f80273a15b3b12d10a1d39e050942e0
handson-ml3 | http://127.0.0.1:8888/lab?token=1d798602e6f6fc421f80273a15b3b12d10a1d39e050942e0
handson-ml3 | [I 2024-06-22 00:56:45.725 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
handson-ml3 | [W 2024-06-22 00:57:02.777 LabApp] Could not determine jupyterlab build status without nodejs
handson-ml3 | [I 2024-06-22 00:57:29.637 ServerApp] Writing notebook-signing key to /home/devel/.local/share/jupyter/notebook_secret
handson-ml3 | [W 2024-06-22 00:57:29.637 ServerApp] Notebook 01_the_machine_learning_landscape.ipynb is not trusted
handson-ml3 | [I 2024-06-22 00:57:30.064 ServerApp] Kernel started: ab6ef08f-0a04-4020-bc1e-72a766350767
handson-ml3 | [I 2024-06-22 00:57:31.438 ServerApp] Connecting to kernel ab6ef08f-0a04-4020-bc1e-72a766350767.
handson-ml3 | [I 2024-06-22 00:57:31.451 ServerApp] Connecting to kernel ab6ef08f-0a04-4020-bc1e-72a766350767.
handson-ml3 | [I 2024-06-22 00:57:31.464 ServerApp] Connecting to kernel ab6ef08f-0a04-4020-bc1e-72a766350767.
handson-ml3 | [I 2024-06-22 00:57:37.034 ServerApp] Starting buffering for ab6ef08f-0a04-4020-bc1e-72a766350767:4a9249d7-0e12-40e7-87fb-071b24a4de19 @ageron I don't have access to associate this issue to the PR or to assign you as a reviewer, but I'd apprecitate your review (and merge probably too, since only people with |
Describe the bug
I use a GPU powered Linux laptop and I couldn't successfully run the docker compose scenario.
Here are my prerequisites:
To Reproduce
POP!_OS
orUbuntu
22.04 LTS
docker compose up
fromdocker
directoryHere is the output:
Expected behavior
The docker container to start
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: