'GCP Vertex AI Managed Notebook cannot use custom container

In GCP Vertex AI, I created a Managed Notebook by specifying one of our custom containers which work perfectly with User-Managed Notebook kernels. The Managed Notebook starts, and Jupyter Lab seems to work without any signs of error.

Unfortunately, if I look at the available kernels in Jupyter Lab, only the default kernels are listed but not my custom kernel.

An activity log entry on the right shows a spinning wheel "Loading kernel from [custom container]" which never disappears.
Taking a look at the terminal,

docker image ls

does not show the custom container either; obviously, it was not even pulled to the Managed Notebook.

If I perform

docker pull [custom container]

in the terminal, to test connectivity to the Artifact Registry then it pulls the container correctly as expected. However, the custom kernel is still not visible in Jupyter Lab (even after a notebook restart).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source