在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mynameisvinn/Docker-for-Data-Scientists开源软件地址:https://github.com/mynameisvinn/Docker-for-Data-Scientists开源编程语言:Jupyter Notebook 94.6%开源软件介绍:what's this?this is the simplest example of sharing notebooks with docker. lets get startedget itclone this repo with start docker daemondo building da containerdo it does so by executing a sequence of commands specified by the dockerfile including (a) fetching a base python 3.6 layer; (b) copying FROM python:3.6-slim
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY notebooks /home
WORKDIR /home
# Exposing ports
EXPOSE 8888
# Running jupyter notebook
# --NotebookApp.token ='demo' is the password
CMD ["jupyter", "notebook", "--no-browser", "--ip 0.0.0.0", "--allow-root", "--NotebookApp.token='demo'"] running da containernow that we've built the container, we can run it. we run with running it on ec2 - why not?assuming youve enabled traffic to port 8887, you could do everything above in an ec2 instance, and then access the notebook from your local machine by pointing your browser to $EC2_IP:8887. syncing files between local and containerwe could also do other helpful commands:
docker composealternatively, assuming the image can be pulled from dockerhub, you can run |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论