Build the docker image with your application code

Before you can deploy the application on the cluster, you first need to build the Docker image.

  1. Build a Docker image. Make sure to replace the value region and namespace

     docker build . -t <region>.icr.io/<namespace>/todo-<lastname>:1.0
    

    Region is us for the Dallas datacenter.

    namespace is pyrk8s .

  2. Verify that the image was successfully added to your local docker registry

     docker images
    

    Output:

     REPOSITORY                         TAG                 IMAGE ID            CREATED             SIZE
     de.icr.io/lab-registry/todo-mace   1.0                 30bd6bcc47bc        42 minutes ago      124MB
     node                               11.13.0-alpine      f34bcc2815ed        6 weeks ago         75.4MB
    

results matching ""

    No results matching ""