How to replace the private image forcely?

Hello, members

1. Quetions.

I’m creating a custom image for Z2JH.

When I update the private image, I want to replace the image.
(It means I want to use the new image in Z2JH).
But I don’t know how to force-pull the image.
Does anyone know how to do it?

configuration.

singleuser:
  image:
    name: 'my-private-repository/myjupyterhub'
    tag: 'latest'

Best regards.

2. environment

  • Ubuntu 22.04
  • Helm: v3.13.0
  • k8s: v1.28.2
  • jupyterhub: 3.1.0

3. Configurations

FROM quay.io/jupyter/tensorflow-notebook

COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
RUN pip install -r /tmp/requirements.txt && \
    fix-permissions "${CONDA_DIR}" && \
    fix-permissions "/home/${NB_USER}"
#RUN mamba install --yes --file /tmp/requirements.txt && \
#    mamba clean --all -f -y && \
#    fix-permissions "${CONDA_DIR}" && \
#    fix-permissions "/home/${NB_USER}"

COPY overrides.json ${CONDA_DIR}/share/jupyter/lab/settings/overrides.json

requirements.txt

keras==2.14.0
opencv-python==4.8.1.78
TPOT==0.12.1
torch==2.1.0
jupyterlab-language-pack-ja-JP

overrides.json

{
    "@jupyterlab/translation-extension:plugin": {
        "locale": "ja_JP"
    }
}

Image build using docker build command.
After, the build I update the image using docker push.

You can force Kubernetes to re-pull the image on every start by setting singleuser.image.pullPolicy to Always

Hello, @manics Thank you for your reply.

I’ll try that option.