You can create and push your docker image into hub.
My question is:
is there a way, just to make an command in gradle, to open terminal and start the command? Because, saving password of his account from docker.hub is not so nice, for example you work in a group and have to share your project with others?
I would like to have a terminal, where I put the command, and the terminal will ask me for user-name and password…
That would be much nicer, does anybody have an idea/tip about it?
Thanks a lot
After that, you will be able to add your credentials to the command line via the -P command line option: gradlew pushImage -Pemail=value -Pusername=value -Ppassword=value
What I want is, to call the pushImage command with the password, username etc. with it, also with the “docker-hub-username”, is there a way to do it? Or does you have a tip for me? Thanks a lot