Skip to content

Pushing images into Harbor

This section explains how to tag and push the docker images into Harbor.

Prerequisite

  • Docker client is installed on your machine.
  • The user must have appropriate role.
  • Required robot account is already created.
  • Make sure the project to which you are pushing the image is available on Harbor.

Procedure

To push an image into Harbor, follow these steps:

  1. Log in to Docker client.
    docker login mcrbasic.registry.eu1.mindsphere.io -u ‘<RobotAccountID>’ -p ‘<password>’
  2. Tag your new application build.
    docker tag <ApplicationName> <TenantURL>/<Application>:<BuildInfo>
  3. Push your tagged image to repository.
    docker push <ApplicationName> <TenantURL>/<Application>:<BuildInfo>

Note

Tag and push command syntax
You can copy the command syntax to tag an image or push an image from the "PUSH IMAGE" list in the "Repositories" tab.

Result

The newly added image is displayed under the appropriate repository with details as shown in the following screenshot.

Puncr-alpine

Any questions left?

Ask the community


Except where otherwise noted, content on this site is licensed under the MindSphere Development License Agreement.


Last update: March 17, 2022