Skip to content

Escaping a comma in --driver-opt #1133

Answered by jedevc
juergenthomann asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the late reply, but I just had a similar question myself 😄

I think you should be able to escape by enclosing the key and the value in quotes, i.e. something like:

$ docker buildx create --use --driver-opt \'env.no_proxy=localhost,127.0.0.1\',adifferentopt=value

You need the backslashes to escape the quotes from bash so buildx actually gets them, and then you each key/value pair should be kept separate 🎉

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@juergenthomann
Comment options

@jedevc
Comment options

jedevc Jun 24, 2022
Collaborator

@juergenthomann
Comment options

Answer selected by juergenthomann
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
Category
Q&A
Labels
None yet
3 participants