Private docker repository password configuration


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

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