Hello, members.
1. Goal
I would like to create a custom image for Z2JH using jupyter-repo2docker
command.
jupyter-repo2docker https://github.com/norvig/pytudes
works fine.
2. Question
- Does Z2JH use
jupyter-repo2docker
for creating a support images (ex.jupyter/pyspark-notebook
) ? - Is Z2JH base_image
jupyter/base-notebook
? - Does anyone know how to avoid this error? (Maybe macOS docker issue. I’ll try it on Linux later)
List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
error?
Best regards.
3. Setup
requirements.txt
keras==2.13.1
tensorflow==2.13.0
opencv-python==4.8.0.76
TPOT==0.12.1
torch==2.0.1
jupyterlab-language-pack-ja-JP
set DOCKER_HOST
environment variable.
( See also, Container engine initialization error, unclear why )
export DOCKER_HOST="unix:///Users/user/.docker/run/docker.sock"
jupyter-repo2docker --Repo2Docker.base_image=jupyter/base-notebook --Repo2Docker.platform=linux/amd64 .
Picked Local content provider.
Using local repo ..
Python version unspecified, using current default Python version 3.10. This will change in the future.Building conda environment for python=3.10
Using PythonBuildPack builder
Step 1/50 : FROM jupyter/base-notebook
---> 07bb7d6acc26e...
Step 2/50 : ENV DEBIAN_FRONTEND=noninteractive
---> Using cache
---> 5b3ae39433b3
Step 3/50 : RUN apt-get -qq update && apt-get -qq install --yes --no-install-recommends locales > /dev/null && apt-get -qq purge && apt-get -qq clean && rm -rf /var/lib/apt/lists/*
---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
---> Running in 3fc0cb3c3f09
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
Removing intermediate container 3fc0cb3c3f09
The command '/bin/bash -o pipefail -c apt-get -qq update && apt-get -qq install --yes --no-install-recommends locales > /dev/null && apt-get -qq purge && apt-get -qq clean && rm -rf /var/lib/apt/lists/*'
4. Environment
- macOS: 13.5.2 (M1)
- Docker Desktop 4.24.2
- jupyter-repo2docker: 2023.06.0+42.g570c117