tag:help.appveyor.com,2012-11-13:/discussions/questions/21975-how-to-escape-in-ubuntu-build-workerAppVeyor: Discussion 2018-08-31T19:53:36Ztag:help.appveyor.com,2012-11-13:Comment/454939942018-06-16T19:30:29Z2018-06-16T19:30:29ZHow to escape $ in Ubuntu build worker?<div><p>Justin,<br>
<a href="https://docs.docker.com/engine/reference/commandline/login/">https://docs.docker.com/engine/reference/commandline/login/</a><br>
describes several ways to provide a password to docker command.<br>
In part "Provide a password using STDIN" there is a quite simple example:<br>
$ cat ~/my_password.txt | docker login --username foo --password-stdin But If you don't want to write password to file and you store it in variable $docker_password you may rewrite this example like this:<br>
docker login --username foo --password-stdin <<< "$docker_password"<br>
There is "Credentials store" and "Credential helper protocol" parts of <a href="https://docs.docker.com/engine/reference/commandline/login/">https://docs.docker.com/engine/reference/commandline/login/</a> also worth to read,</p>
<p>But frankly, do not use dollar sign in bash strings. This will save you a lot of time ;))</p></div>Wasa Pleshakov