SBK Docker: Post Authentication Question

I use my own SBT package to create a Docker image, and my build.sbt:

packageName in Docker := name.value version in Docker := version.value dockerBaseImage := "java" dockerRepository :=Some("index.docker.io/xyz") dockerExposedPorts := Seq(8283) 

I am trying to post an image in a private docker hub, but providing it

 [error] unauthorized: authentication required. 

in build.sbt, how can I specify the hub username and password .

is there any other configuration that i am missing here.

+3
scala docker sbt sbt-native-packager
source share
1 answer

Just as Abanub said , this is not possible with configuration. But you should be able to make the build work by doing docker login in your shell, and then the packer should work as expected.

+1
source share

All Articles