Hi,
Could anyone please clarify on the below?
1. How can I pass the my company's private docker registry when I build the image using Jib Gradle to be used for 'to' image parameter?
Below is the command that I'm using . The below creates the image and pushes to the docker registry. However, I see the image both in my local machine and in the company's docker registry.
Is this the correct way to use the company docker registry for pushing the image?
./gradlew build --stacktrace --debug --no-build-cache --rerun-tasks t <subprojectname>:jibDockerBuild -Djib.dockerClient.executable=/usr/local/bin/docker
2. I would be using Jib Gradle in my pipeline and wondering whether I need to run as user -root for the Jib Gradle to successfully build the image as
I'm using the dockerClient? If I use service account, will the jibDockerBuild still work?
Thanks in advance!