🔑 Create a Docker Hub Account
In this section, we will:
- ✅ Create a Docker Hub account (if you don’t have one already)
- ✅ Generate a Docker Hub access token for secure CLI authentication
1️⃣ Sign Up for Docker Hub
If you don’t already have a Docker Hub account, follow these steps:
- Visit Docker Hub in your browser
- Click Sign Up in the top-right corner
- Enter your information:
- Docker ID (username)
- Email address
- Password
- Complete the verification process
- Log in to your new account

2️⃣ Create an Access Token
For secure CLI authentication, create a personal access token:
- Navigate to Personal Access Tokens section in your Docker Hub.
- Click on Generate new token
- Enter a description (e.g., “Workshop Token”)
- Choose 30 days for the Expiration date.
- Select appropriate permissions as Read, Write, Delete
- Click Generate
- IMPORTANT: Copy and save your token immediately! It will only be shown once. Or just keep the browser tab open.

Preparing for CLI Authentication
After generating your token:
- Copy your Docker Hub username from the top-right corner of the page
- Copy the generated token from the dialog box (you’ll need both in the next section)
- Keep these values handy - you’ll need to enter them when prompted in the next step

Note: Don’t close this browser tab until you’ve completed the next section. You won’t be able to see the token again after closing the dialog.
3️⃣ Token Best Practices
Follow these security best practices for your access token:
- ✅ Store securely: Keep your token in a password manager
- ✅ Set expiration: Consider setting an expiration date
- ✅ Limit scope: Only grant necessary permissions
- ✅ Rotate regularly: Create new tokens periodically
- ✅ Never share: Keep tokens confidential
- ✅ Revoke if compromised: Delete tokens if security is breached
4️⃣ Next Steps
Now that you have a Docker Hub account and access token:
- Keep your token handy for the next section
- Proceed to Docker Hub CLI Authentication to connect your local environment
- Prepare to push and pull images from Docker Hub