• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

Docker Index

The command line utility has pre-build commands for interacting with the internal API endpoints of the Docker Index. Endpoints for managing user access levels for various namespaces and repos, this is a critical component in managing your private registry/index.

The Docker Index is available at https://github.com/ekristen/docker-index.git, it is also a trusted build available by using docker pull ekristen/docker-index (https://index.docker.io/u/ekristen/docker-index/)

Docker Index (https://github.com/ekristen/docker-index.git)

This is currently the tool to manage the https://github.com/ekristen/docker-index project. This tool requires that you have a .dockercfg file as it is used to determine which indexes you have configured and it uses the username and password combination to authenticate to the docker-index management API urls.

npm install -g docker-index-cli

npm install -g ekristen/docker-index-cli

This will return a list of users that are in the index database. These users will have various levels of access to namespaces and repositories.

Usage: docker-index listUsers <index>

This will return basic information about a user including whether or not the account is disabled and all their permissions.

Usage: docker-index getUser <user>@<index>

This will enable a user in the index. The docker index has a private mode that will disable users by default when they login for the first time against the index. Use this function to unblock the account.

Usage: docker-index enableUser <user>@<index>

This will disable a user in the index. The account remains, and so does the permission set, but this will trigger an error any time the account is used against the register or the index.

Usage: docker-index disableUser <user>@<index>

List all permissions associated with a user.

Usage: docker-index listPermissions <user>@<index>

Desired to gain proficiency on Docker? Explore the blog post on Docker training online to become a pro in Docker.

Add an additional permission to a user.

Usage: docker-index addPermission <user>@<index>/<repo> <permission>

Remove a permission from a user.

Usage: docker-index removePermission <user>@<index>/<repo>

This will inspect the .dockercfg for your user and list what indexes/registries you have authenticated against.

Usage: docker-index listIndices

This will list all images that have been pushed to the index.

Usage: docker-index listImages <namespace>

Removed in Version 1.0.0

Add a user to the index, once the user has been added permissions can be managed for the user.

For indepth understanding of Docker click on

Summary
Review Date
Reviewed Item
Docker Index
Author Rating
5

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on Docker Index"

    Leave a Message

    Your email address will not be published. Required fields are marked *

    Site Disclaimer, Copyright © 2016 - All Rights Reserved.

    Support


    Please leave a message and we'll get back to you soon.

    I agree to be contacted via e-mail.