Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Dockerfile-jupyter 1.6 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  1. # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
  2. # Builds ultralytics/ultralytics:latest-jupyter image on DockerHub https://hub.docker.com/r/ultralytics/ultralytics
  3. # Image provides JupyterLab interface for interactive YOLO development and includes tutorial notebooks
  4. # Start from Python-based Ultralytics image for full Python environment
  5. FROM ultralytics/ultralytics:latest-python
  6. # Install JupyterLab for interactive development
  7. RUN uv pip install --system jupyterlab && \
  8. # Create persistent data directory structure
  9. mkdir -p /data/{datasets,weights,runs} && \
  10. # Configure YOLO directories
  11. yolo settings datasets_dir="/data/datasets" weights_dir="/data/weights" runs_dir="/data/runs" && \
  12. rm -rf tmp /root/.config/Ultralytics/persistent_cache.json
  13. # Start JupyterLab with tutorial notebook
  14. ENTRYPOINT ["/usr/local/bin/jupyter", "lab", "--allow-root", "--ip=*", "/ultralytics/examples/tutorial.ipynb"]
  15. # Usage Examples -------------------------------------------------------------------------------------------------------
  16. # Build and Push
  17. # t=ultralytics/ultralytics:latest-jupyter && sudo docker build -f docker/Dockerfile-jupyter -t $t . && sudo docker push $t
  18. # Run
  19. # t=ultralytics/ultralytics:latest-jupyter && sudo docker run -it --ipc=host -p 8888:8888 $t
  20. # Pull and Run
  21. # t=ultralytics/ultralytics:latest-jupyter && sudo docker pull $t && sudo docker run -it --ipc=host -p 8888:8888 $t
  22. # Pull and Run with local volume mounted
  23. # t=ultralytics/ultralytics:latest-jupyter && sudo docker pull $t && sudo docker run -it --ipc=host -p 8888:8888 -v "$(pwd)"/datasets:/data/datasets $t
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...