dobi
dobi copied to clipboard
[Windows] domain users create syntax error during image creation
[ERROR] Failed to execute task "build-img:build": API error (500): {"message":"Error parsing reference: \"<project-name>-build:<project-name>-<ad_domain>\\\\<username>\" is not a valid repository/tag: invalid reference format"}
Since my employer uses AD, my username causes a syntax error in the image name.
I think the user name here is coming from the exec-id. You can override the default for the project frommeta.exec-id (http://dnephin.github.io/dobi/config.html#meta), or you can set the $DOBI_EXEC_ID environment variable to override it.
I think in general using the user id as the default is a good option, but maybe it should be sanitized first.