Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerCli, Docker And The Dollar Sign #18

Closed
infroger opened this issue Dec 29, 2017 · 0 comments
Closed

PowerCli, Docker And The Dollar Sign #18

infroger opened this issue Dec 29, 2017 · 0 comments

Comments

@infroger
Copy link

infroger commented Dec 29, 2017

Spent few hours trying to use the dollar sign ($) in the entrypoint of a docker-compose file. Didn't find the solution on the web, only by trial and error. Would like to share.

The solution is to double escape the dollar sign (\$$).

Turn this:

entrypoint: |
  bash -c '/usr/bin/powershell <<EOF
    Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
...
 EOF'

Into this:

entrypoint: |
  bash -c '/usr/bin/powershell <<EOF
    Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:\$$false
...
 EOF'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant