Docker Hub Target

You can define a Docker Hub target to be used with Docker Hub dynamic secrets or Docker Hub rotated secrets.

Create a Docker Hub Target from the CLI

To create a Docker Hub target from the CLI, run the following command:

akeyless create-dockerhub-target \
--name <target name> \
--dockerhub-username <Dockerhub username> \
--dockerhub-password <Dockerhub password> \

Where:

  • name: A unique name of the target. The name can include the path to the virtual folder where you want to create the new target, using slash / separators. If the folder does not exist, it will be created together with the target.

  • dockerhub-username: Provide the username of the Docker repository user with privileges to create temporary access tokens.

  • dockerhub-password: The password of the privileged user.

You can find the complete list of parameters for this command in the CLI Reference - Akeyless Targets section.

Create a Docker Hub Target in the Akeyless Console

  1. Log in to the Akeyless Console, and go to Targets > New > Infra Targets > Docker Hub.

  2. Define a Name of the target, and specify the Location as a path to the virtual folder where you want to create the new target, using slash / separators. If the folder does not exist, it will be created together with the target.

  3. Define the remaining parameters as follows:

  • Username: Provide the username of the Docker repository user with privileges to create temporary access tokens.

  • Password: Provide the password of the privileged user.

  • Protection key: To enable Zero-Knowledge, select a key with a Customer Fragment. For more information about Zero-Knowledge, see Implement Zero Knowledge.

  1. Click Save.

Did this page help you?