Skip to content

wizardmatas/dockerhubinvite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example workflow

Docker Desktop licencing changed and some organisations need to buy licence to run Docker Desktop, to do it you must invite members to Docker Hub where licencing is managed for Teams Plan. Tool was created to automate invite management for Teams plan.

Docker Hub Invite

Tool to send Docker Hub Invites

The Docker Hub Invite tool is a tool automating member invite to Docker Hub. It extents Docker Hub UI (where you can invite only singe member) with ability to invite tens or hundreds users to Docker Hub Orgasation.

Get started

Prerequisites

Login to the Docker Hub and note organization and team name, where you want to invite members.

Add needed count of seats into your org account.

Get token with:

# curl -X POST 'https://hub.docker.com/v2/users/login' -H 'Content-Type: application/json' --data-raw '{"username": "myusername","password":"hunter2"}'

Fill in env variables .ENV:

export DOCKERHUBTOKEN="Bearer adfdfglvjjdvj"
export DOCKERHUBORG=yourorg
export DOCKERHUBTEAM=teaminorg
export DOCKERHUBINVITEFILE=emails.txt
export DOCKERHUBTESTMODE=false

NOTE: DOCKERHUBTESTMODE=true will set read only mode to get members from org and team.

Source it:

# source .ENV

Run

git clone https://github.com/wizardmatas/dockerhubinvite.git
cd dockerhubinvite/
./dockerhubinvite
Token Check Started...
Token Check 200 OK
Start member invite...
Sending email to [email protected] 
------
Sending email to [email protected] 
------

Feedback

Please leave your feedback in the issue tracker! I'd love to know how you're using this tool and what features you'd like to see us add.

Code

If you spot a bug or see a typo, please feel free to fix it by putting up a pull request!

About

Tool to send Docker Hub Invites

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages