mirror of
https://github.com/docker/docs.git
synced 2026-11-04 10:01:00 +00:00
Update Docker login command syntax
There was -u missing in the login command syntax, which would prompt to provide username and password, but never succeed the login attempt.
This commit is contained in:
1 parent
553c69e1b7
commit
934faffc71
1 file changed
+1
-1
@@ -64,7 +64,7 @@ Let's try to push the image to Docker Hub.
|
||||
docker image ls
|
||||
```
|
||||
|
||||
2. To fix this, first sign in to Docker Hub using your Docker ID: `docker login YOUR-USER-NAME`.
|
||||
2. To fix this, first sign in to Docker Hub using your Docker ID: `docker login -u YOUR-USER-NAME`.
|
||||
3. Use the `docker tag` command to give the `getting-started` image a new name. Replace `YOUR-USER-NAME` with your Docker ID.
|
||||
|
||||
```console
|
||||
|
||||
Reference in new issue
Block a user