斯卡拉SBT设置dockerRepository“未指定发布的存储库”

我正在尝试使用以下命令将一个scala版本发布到dockerregistry中:

./sbt "; set dockerRepository := Some(\"registryname/project\"); docker:publish" 

我正在指定dockerRepository,但是在运行命令时会抛出以下错误:

 [error] You cannot push a "root" repository. Please rename your repository to <user>/<repo> (ex: <user>/example) java.lang.RuntimeException: Repository for publishing is not specified. [error] (all/*:publishConfiguration) Repository for publishing is not specified. [error] (server/docker:publish) Nonzero exit value: 1 [error] (config/*:publishConfiguration) Repository for publishing is not specified. [error] Total time: 63 s, completed 01/09/2015 10:48:04 AM 

当我看看我的本地dockerregistry,我可以看到它编译的docker图像,但没有前缀dockerregistry名称:

 docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE example 0.0.1 SNAPSHOT a6eb8942aa9f 8 minutes ago 1.136 GB 

所以它似乎没有接受我设置的命令dockerrepositoryvariables,这也是在生成日志:

 [15:32:58][Step 4/5] [info] Loading project definition from /build/project [15:33:01][Step 4/5] [info] Set current project to example (in build file:/build/) [15:33:06][Step 4/5] [info] Defining {.}/*:dockerRepository [15:33:06][Step 4/5] [info] The new value will be used by no settings or tasks. [15:33:06][Step 4/5] [info] Reapplying settings...