k8s-hub image not valid when created from docker build -f Dockerfile -t k8s-hub:0.8.2

7/9/2020

What I did: 1. Downloaded repo

git clone https://github.com/jupyterhub/zero-to-jupyterhub-k8s
  1. checkout'd the 0.8.2 tag

    git fetch --all --tags --prune
    git tag
    git checkout tags/0.8.2
    git status
    HEAD detached at 0.8.2
    
  2. Did a Docker build of the Docker image

    docker build -f Dockerfile -t k8s-hub:0.8.2 .  
  3. Did a docker images

    docker images
    REPOSITORY          TAG                 IMAGE ID            CREATED             
    SIZE
    k8s-hub             0.8.2               439891eafce8        3 minutes ago       534MB
    ubuntu              18.04               d27b9ffc5667        45 hours ago        64.2MB
    
  4. Results:

    The image is not functional. Errors while building

    ... 
    
    Get:98 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 sqlite3 amd64 3.22.0-1ubuntu0.4 [752 kB]
    debconf: delaying package configuration, since apt-utils is not installed
    Fetched 114 MB in 9s (13.4 MB/s)
    ...
    Setting up patch (2.7.6-2ubuntu1.1) ...
    Setting up xz-utils (5.2.2-1.3) ...
    update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
    update-alternatives: warning: skip creation of /usr/share/man/man1/lzma.1.gz because associated file /usr/share/man/man1/xz.1.gz (of link group lzma) doesn't exist
    update-alternatives: warning: skip creation of /usr/share/man/man1/unlzma.1.gz because associated file /usr/share/man/man1/unxz.1.gz (of link group lzma) doesn't exist
    update-alternatives: warning: skip creation of /usr/share/man/man1/lzcat.1.gz because associated file /usr/share/man/man1/xzcat.1.gz (of link group lzma) doesn't exist
    update-alternatives: warning: skip creation of /usr/share/man/man1/lzmore.1.gz because associated file /usr/share/man/man1/xzmore.1.gz (of link group lzma) doesn't exist
    update-alternatives: warning: skip creation of /usr/share/man/man1/lzless.1.gz because associated file /usr/share/man/man1/xzless.1.gz (of link group lzma) doesn't exist
    update-alternatives: warning: skip creation of /usr/share/man/man1/lzdiff.1.gz because associated file /usr/share/man/man1/xzdiff.1.gz (of link group lzma) doesn't exist
    update-alternatives: warning: skip creation of /usr/share/man/man1/lzcmp.1.gz because associated file /usr/share/man/man1/xzcmp.1.gz (of link group lzma) doesn't exist
    update-alternatives: warning: skip creation of /usr/share/man/man1/lzgrep.1.gz because associated file /usr/share/man/man1/xzgrep.1.gz (of link group lzma) doesn't exist
    update-alternatives: warning: skip creation of /usr/share/man/man1/lzegrep.1.gz because associated file /usr/share/man/man1/xzegrep.1.gz (of link group lzma) doesn't exist
    update-alternatives: warning: skip creation of /usr/share/man/man1/lzfgrep.1.gz because associated file /usr/share/man/man1/xzfgrep.1.gz (of link group lzma) doesn't exist
    Setting up libheimbase1-heimdal:amd64 (7.5.0+dfsg-1) ...
    
  5. Need an image similar to: <be> https://hub.docker.com/layers/jupyterhub/k8s-hub/0.8.2/images/sha256-0492ebf6917e3da9a8c8ce35d4e014769f469271b724a58b0823cba7bee066ce?context=explore <be>

    When downloaded looks like this:

    docker images
    REPOSITORY           TAG                 IMAGE ID            CREATED             SIZE
    jupyterhub/k8s-hub   0.8.2               e48e1e021139        15 months ago       558MB
    
-- Stormy Weather
docker
dockerfile
jupyterhub
kubernetes
python

0 Answers