Repository navigation
We had some testers who found a hard to diagnose bug in Dockerfile - #11203
Conversation
They used single-quotes (') in the exec-form of onbuild run command
and things blew up. They asked to fix the man page to explain why.
Docker-DCO-1.1-Signed-off-by: Dan Walsh <[email protected]> (github: rhatdan)
|
can we not fix the parser to help the user - especially as the man pages are not the first place most Docker users look? |
|
Not sure that would be possible; the parser uses "Fuzzy logic" to decide if a |
|
+1 for only accepting valid json. people then can feel free to use |
|
Using IMHO, it would be better to simply throw an error about bad syntax, than to assume something other than exactly what was written. Enforcing JSON syntax is fine, but trying to "out smart" users is a slippery slope toward lots more conditionals and resulting errors/bugs. However, tossing an error is faster, helps keep all Dockerfiles clean and consistent, makes testing easier, and reduces documentation required. |
|
LGTM |
We had some testers who found a hard to diagnose bug in Dockerfile
|
if someone makes a patch to the parser we can remove this from the docs. |
They used single-quotes (') in the exec-form of onbuild run command
and things blew up. They asked to fix the man page to explain why.
Docker-DCO-1.1-Signed-off-by: Dan Walsh [email protected] (github: rhatdan)