Private docker repository password configuration

Hi,

I tried configuring building a docker image as per document mentioned in

https://doc.akka.io/docs/akka-management/current/kubernetes-deployment/building-using-sbt.html

but there is no option to provide password for private docker registry.

dockerUsername := sys.props.get(“docker.username”)
dockerRepository := sys.props.get(“docker.registry”)
dockerPassword := sys.props.get(“docker.password”)

error: not found: value dockerPassword
dockerPassword := sys.props.get(“docker.password”)

Please help what would be attribute for configuring private docker repo password.

As documented at https://www.scala-sbt.org/sbt-native-packager/formats/docker.html#requirements you cannot provide the password via the build, and instead you should configure your authentication in the docker CLI tool before invoking sbt.

May i know the intent of providing the docker-registry url , username etc in the code as a configuration. Since I can do the same using docker build and docker push commands.

Any Usecase it address