dobi icon indicating copy to clipboard operation
dobi copied to clipboard

[Windows] domain users create syntax error during image creation

Open willseward opened this issue 8 years ago • 1 comments

[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.

willseward avatar Jan 18 '17 20:01 willseward

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.

dnephin avatar Jan 18 '17 21:01 dnephin