What I wanted to achieve was:

  1. Pull a Spring Boot demo-app image from Dockerhub.
  2. Install that image to Minishift by using Helm.

Step 1: Pull image from Dockerhub docker pull kharulp12/spring_hello_rest_api

Step 2: Export Minishifts registry url to a variable for easy re-use

export registry=$(minishift openshift registry)

Step 3: Tag the image to be used by Minishifts internal image registry. Note the tags version, it is referenced in Helm chart later!

docker tag a54f676e $registry/myproject/springbootapp:1.16.0

Step 4: Push that image to Minishifts registry docker push $registry/myproject/springbootapp:1.16.0

Step 5: Initialize a Helm chart helm create springbootapp

Step 6: Edit values.yml

image:
  repository: 172.30.1.1:5000/myproject/springbootapp
  pullPolicy: IfNotPresent
  # Overrides the image tag whose default is the chart appVersion.
  tag: ""

Step 7: Install the chart helm install springbootapp .