Docker login unsuccessful

Build #516 - senthilrch/kube-fledged - Travis CI (

It’s a PR build triggered from a fork.

I use following command in .travis.yml to log into dockerhub:-
echo “$DOCKERHUB_PSWD” | docker login --username “$DOCKERHUB_USER” --password-stdin

It reports following error:-
The command “echo “$DOCKERHUB_PSWD” | docker login --username “$DOCKERHUB_USER” --password-stdin” exited with 1.

The same command is successful when executed from my local terminal.

I had a look at similar issue Unable to log in to docker hub - Travis CI Community (

In my case the password is a alphanumeric text with a “.” (dot) in it.

Any help to resolve is much appreciated!