Escaping a comma in --driver-opt #1133
-
Hi I'm trying to set a no_proxy variable with multiple comma separated values for buildx, but I'm unable to pass them to buildx without it complaining about the syntax. I also tried different ways to quote it but without success.
Is there any way to escape it? I tried backslash as well before the comma without any difference. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
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:
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 🎉 |
Beta Was this translation helpful? Give feedback.
-
I tried as follows and fix it: |
Beta Was this translation helpful? Give feedback.
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:
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 🎉