cpawali
cpawali

Reputation: 268

SBT docker:publish authentication issue

I am Using SBT Native Packager to build Docker Image, and my build.sbt is :

   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 publish image to private docker hub,but its giving

[error] unauthorized: authentication required.

in build.sbt how can i specify hub userName and Password.

is there any other configuration that i am missing here.

Upvotes: 4

Views: 1411

Answers (1)

gesellix
gesellix

Reputation: 3124

Just like Abanoub said this isn't possible via configuration. But you should be able to make the build work by executing docker login in your shell and the packager should then work as expected.

Upvotes: 1

Related Questions