- Go to your docker hub account
- Go to account settings
- Go to Security
- Click on New Access token
- Give name of your access token and copy the token generated and paste it somewhere safely as token once generated can be retrieved , if lost you have to create a new token.