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

start.sh 501 B

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
  1. #! /bin/sh
  2. DATA=$1
  3. PORT=$2
  4. TAG=mlproj
  5. if [ $# -eq 3 ]; then
  6. if [ "$3" = "--build" ]; then
  7. # Build the docker container
  8. docker build -t $TAG .build
  9. fi
  10. fi
  11. # Run the docker container. Add additional -v if
  12. # you need to mount more volumes into the container
  13. # Also, make sure to edit the ports to fix your needs.
  14. docker run -d --gpus all -it -p $PORT:8888 -v $(pwd):/home/jovyan/work \
  15. -v $DATA:/home/jovyan/data -e GRANT_SUDO=yes -e JUPYTER_ENABLE_LAB=yes \
  16. --restart always --name $TAG $TAG
Tip!

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

Comments

Loading...