Skip to content

Running Docker Exec containing a quote #3157

Discussion options

You must be logged in to vote

Try splitting the arguments from the command? (Try both with and without the single quotes.)

context.DockerExec(
    containerId,
    "sh", "-c", "terraform validate -json > /terraform/dist/logs/validate.json");

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@gitfool
Comment options

@gitfool
Comment options

@pascalberger
Comment options

@pascalberger
Comment options

@pascalberger
Comment options

Answer selected by pascalberger
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants