Tag and Push the Container Image to Your Container Registry

Let's use the container image you built in Build a TimesTen Container Image. In the example, the name of the image is ttimage:22.1.1.34.0.
  1. On your development host, tag the TimesTen container image.
    docker tag ttimage:22.1.1.34.0 container-registry.visioncorp.com/repo:ttimage22.1.1.34.0
  2. Push the TimesTen container image to your container registry.
    docker push container-registry.visioncorp.com/repo:ttimage22.1.1.34.0

    Note:

    To reduce the size of the final TimesTen container image, the Dockerfile uses a multi-stage build. This results in a dangling image left behind. To locate dangling images, use the docker command with the -f filter flag with a value of dangling=true. Once you locate the dangling image, you can use the docker image prune command to remove it. This example removes all dangling images.
    docker images -f dangling=true
    docker image prune

Congratulations! You successfully tagged and pushed a TimesTen container image to a registry of your choice.

Next Steps

Proceed to Obtain TimesTen YAML Manifest Files and Helm Charts.