mirror of https://github.com/docker/docs.git
update intro and how to use tokens (#18458)
This commit is contained in:
parent
33c0e3d2ce
commit
7526256c4e
|
|
@ -7,8 +7,7 @@ aliases:
|
||||||
- /docker-hub/access-tokens/
|
- /docker-hub/access-tokens/
|
||||||
---
|
---
|
||||||
|
|
||||||
If you are using the [Docker Hub CLI](https://github.com/docker/hub-tool#readme)
|
You can create personal access tokens (PAT) to use as alternatives to your password for Docker CLI authentication.
|
||||||
tool (currently experimental) to access Hub images from the Docker CLI, you can create personal access tokens (PAT) as alternatives to your password.
|
|
||||||
|
|
||||||
Compared to passwords, personal access tokens provide the following advantages:
|
Compared to passwords, personal access tokens provide the following advantages:
|
||||||
|
|
||||||
|
|
@ -49,12 +48,15 @@ any time.
|
||||||
|
|
||||||
## Use an access token
|
## Use an access token
|
||||||
|
|
||||||
You can use an access token anywhere that requires your Docker Hub
|
You can use an access token in place of your password when you log in using Docker CLI.
|
||||||
password.
|
|
||||||
|
|
||||||
When logging in from your Docker CLI client (`docker login --username <username>`),
|
Log in from your Docker CLI client with the following command, replacing `YOUR_USERNAME` with your Docker ID:
|
||||||
omit the password in the login command. Instead, enter your token when asked for
|
|
||||||
a password.
|
```console
|
||||||
|
$ docker login --username <YOUR_USERNAME>
|
||||||
|
```
|
||||||
|
|
||||||
|
When prompted for a password, enter your personal access token instead of a password.
|
||||||
|
|
||||||
> **Note**
|
> **Note**
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue