前提・実現したいこと
Docker-comoseを使用し、JupyterLabにアクセスするコンテナを作成中です。
token、パスワード入力をせずにアクセスしたいです。
実行環境はMacです。
発生している問題・エラーメッセージ
「docker-compose build」した後、「docker-compose up -d」で正常にコンテナを作成成功。
ただ、localhost:8888へのアクセスは成功し、Jupyter Severへのアクセスは成功したのですが、token入力なしでのログインができませんでした。
ご教授願います。よろしくお願いします。
該当のソースコード
Dockerfile
FROM python:3 USER root ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install --no-install-recommends -y \ curl \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* RUN python3 -m pip install --upgrade pip \ && pip install --no-cache-dir\ numpy \ scipy \ selenium \ matplotlib \ japanize-matplotlib \ ipython \ scikit-learn \ pandas \ pillow \ mglearn \ requests \ pyperclip \ beautifulsoup4 RUN pip install --upgrade --no-cache-dir \ jupyterlab \ jupyterlab_code_formatter
dockercomposeyml
version: "3" services: jlab: build: context: ./py3 dockerfile: Dockerfile restart: always environment: TZ: Asia/Tokyo tty: true command: jupyter-lab --allow-root --ip=0.0.0.0 --port=8888 --no-browser --NotebookApp.token='' --notebook-dir=/workspace expose: - "8888" ports: - "8888:8888" volumes: - ./py3/root_jupyter:/root/.jupyter - ./workspace:/workspace working_dir: /workspace
Directry
JupyterLab/ ├ py3/ │ └ root_jupyter/ │ └ Dockerfile ├ workspace/ └ docker-compose.yml
参考にしたサイト
https://www.idnet.co.jp/column/page_187.html
https://qiita.com/tay2501/items/1f82f16447bdff86247d
まだ回答がついていません
会員登録して回答してみよう