docker login from command line code example
Example 1: how to docker login
$ docker login --username=maryatdocker --email=[email protected]
Password:
WARNING: login credentials saved in C:\Users\sven\.docker\config.json
Login Succeeded
Example 2: docker login command line push
$ docker login --username=mydockeruser --password=$mypasswordvariable
Login Succeeded
$ docker push mydockeruser/docker-whale
The push refers to a repository [mydockeruser/docker-whale] (len: 1)
7d9495d03763: Image already exists
c81071adeeb5: Image successfully pushed