Referring to https://github.com/docker/cli/pull/271 The flag used in the project `--password-stdin` is supported after docker 17.07