Why we need multiple environments? So it is a wastage of resources.
Docker is not a part of the shell so we need to export the variable Step 3: Now the next step is to install plugins so we install plugin Docker in Jenkins
As we execute the job, it will be seen as below: Thus the image is successfully pushed and we can see our image on the docker hub.