Unable to Push into Docker Private Registry

Hi,
I am trying to publish my JMIX 2 Application into my docker private registry and i have configured the private registry. But the JMIX Studio is pushing to docker.io/library registry. I have attached the image.

docker

Thanks in advance.

Hi,
I apologize for the late response.
Do you use “One-click deployment” Studio functionality or call the gradle task ‘bootBuildImage’ manually?
It seems to me that the Studio does not affect anything here, try to set up your gradle task for example as here
Regards,
Mikhail

Hi @m.fedoseev ,
Thanks for your response. I have tried both methods and both methods are not working for me.

Method 1:
I have used the Docker Build Settings, and given my private registry informations as image attached below.

image

And then i tried to push the image as below.

image

Method 2:
I also tried calling the gradle task manually as below:

tasks.named("bootBuildImage") {
	docker {
		builderRegistry {
			username = "my_user"
			password = "my_secret"
			url = "my_private_repository_url"
			email = "my_email"
		}
	}
}

the following error i am getting, if i push manually.

2024-02-15T10:49:49.591+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
Execution failed for task ':bootBuildImage'.
> Docker API call to 'localhost/v1.24/images/create?fromImage=docker.io%2Fpaketobuildpacks%2Fbuilder%3Abase' failed with status code 500 "Internal Server Error" and message "Head "https://registry-1.docker.io/v2/paketobuildpacks/builder/manifests/base": unauthorized: incorrect username or password"

But it still tries to login to the ‘https://registry-1.docker.io/v2/paketobuildpacks/builder/manifests/base