A
A
aab1122019-10-18 20:47:14
Docker
aab112, 2019-10-18 20:47:14

How to login to docker via command line?

Installed Windows 7 Pro using docker toolbox.
If you write simply docker login, then you can’t enter a password. That is, when it comes to the password, characters are simply not printed.
If you type the command docker login -u username -p pass, then the message WARNING! Using --password via the CLI is insecure. Use --password-stdin.
I tried several ways to log in using --password-stdin. For example, like this:

echo | SET p=pass | docker login --username username --password-stdin

An error is displayed Error: Cannot perform an interactive login from a non TTY device
Also took the password from the file:
docker login --username aab112 --password-stdin < pass.txt

Nothing is output after running the command.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Derepko, 2019-10-18
@xEpozZ

The characters are not printed because it is a password. Security, everything.
Anything you enter will be entered but not displayed.
Try entering your password and pressing ENTER. You will succeed. I believe

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question