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 with the CLI
To create a Docker Hub target with the CLI, run the following command:
akeyless target create dockerhub \
--name <target name> \
--dockerhub-username <Docker Hub username> \
--dockerhub-password <Docker Hub 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 Console
-
Log in to the Akeyless Console, and go to Targets > New > Infra (Docker Hub).
-
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. -
Select a Protection key with a Customer Fragment to enable Zero-Knowledge and click Next. For more information, read here.
-
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.
-
-
Click Finish.
Updated 13 days ago
