Important:

IBM Cloud Pak® for Data Version 4.7 will reach end of support (EOS) on 31 July, 2025. For more information, see the Discontinuance of service announcement for IBM Cloud Pak for Data Version 4.X.

Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.7 reaches end of support. For more information, see Upgrading IBM Software Hub in the IBM Software Hub Version 5.1 documentation.

Pushing the image to the registry

After you have added your libraries to the Dockerfile and have created the image, you must push the image to the registry.

  1. Upload your image to the target registry, for example the registry on the Cloud Pak for Data cluster. The value of <target_registry> is the private registry configured for Cloud Pak for Data.

    You can upload by using Docker, Podman or Skopeo.

  • For Docker:

    docker login -u <username> -p <password> <target_registry>
    docker tag <new-image-name> <target_registry>/<new-image-name>:<new-image-tag>
    docker push <target_registry>/<new-image-name>:<new-image-tag>
    
  • For Podman:

    podman login -u <username> -p <password> <target_registry>
    podman tag <new-image-name> <target_registry>/<new-image-name>:<new-image-tag>
    podman push <target_registry>/<new-image-name>:<new-image-tag>
    
  • For Skopeo: You don't need a separate login command for Skopeo but Skopeo needs to know if you used Docker or Buildah to build the new image. Depending on the build engine, the location for images changes locally.

    If the image was built with Docker:

    skopeo copy –dest-creds <username>:<password> docker-daemon:<new-image-name> docker://<target_registry>/<new-image-name>:<new-image-tag>
    

    If the image was built with Buildah:

    skopeo copy –dest-creds <username>:<password> container-storage:<new-image-name> docker://<target_registry>/<new-image-name>:<new-image-tag>
    

Notes:

  • Watson Machine Learning custom images only support images from a private container registry.
  • A CPD cluster pulls images directly from the IBM® Entitled Registry or from a private container registry. You can read more about this in Configuring your cluster to pull images.

Next steps

Creating a new base software specification for the custom image

Parent topic: Customizing deployment runtime images