728x90
반응형
jupyter notebook을 docker에서 실행하기
Dockerfile
# tf2.3.0 docker makefile
FROM tensorflow/tensorflow:2.3.0-gpu
LABEL maintainer="chan"
RUN apt-get update && apt-get install -y --no-install-recommends \
ssh git vim curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt /tmp/requirements.txt
RUN pip3 install --upgrade pip && \
pip3 install setuptools wheel && \
pip3 install -r /tmp/requirements.txt
docker image build, run container, jupyter notebook install and setting, run
# build docker image
docker build tf_230 .
# run container
docker run -d --gpus all -p 80:8888 --name=notebook tf_230
# install jupyter notebook
docker exec -it notebook bash
pip install jupyter-lab notebook voila
jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root --notebook-dir=/test
728x90
728x90
BIG
'Programming > Docker' 카테고리의 다른 글
docker image 저장 / 이동 / 로드 (0) | 2023.04.06 |
---|---|
Dockerfile 에서 apt로 Nginx 설치시 locale 선택 문제 (0) | 2020.11.19 |
docker에서 mariadb 설치하기 (0) | 2020.07.16 |
docker에서 jenkins 띄우기 (0) | 2020.07.08 |
user에 docker sudo 권한 부여 (0) | 2020.07.06 |
댓글