B.3 Push Image to a Docker Registry

The installation bundle that you have downloaded to your local system contains a Docker image of MicroTx. Push this image to the registry that you have created in Docker.

Perform the following steps to push the Docker image of MicroTx to the registry in Docker:
  1. Load the MicroTx image to the local Docker repository. The MicroTx image is located at installation_directory/otmm-<version>/image/tmm-<version>.tgz.
    cd installation_directory/otmm-<version>/otmm
    docker load < image/tmm-<version>.tgz
    The following message is displayed when the image is loaded.
    Loaded image: tmm:<version>
  2. Create a tag for the image that you have loaded.
  3. Use the following commands to specify a unique tag for the images that you want to push to the remote Docker repository.

    Syntax

    docker tag local_image[:tag] remote_image[:tag]

    Where,

    • local_image[:tag] is the tag with which the image is identified in your local repository.
    • remote_image[:tag] is the tag with which you want to identify the image in the remote Docker repository.

    Sample Commands

    docker tag tmm:<version> 198.51.100.1:5000/tmm

    Where, 198.51.100.1:5000 is the Docker registry to which you want to push the image file, tmm:<version>. Provide the registry details based on your environment.

  4. Push the Docker image with the new tag to the Docker registry.

    Syntax

    docker push remote_image[:tag]
    Sample Commands
    docker push 198.51.100.1:5000/tmm