title: how to make jenkins pipeline to run docker commands on remote server
body: <p>I have 2 ec2 instances
  1st one: that hosts jenkins and docker, which builds an image from a jar file then pushes it to docker hub repo</p>
  
  <p>2nd one: which will be my application server, which will contain docker that will pull this image from docker hub and run the container on the docker engine</p>
  
  <p>Ive done the 1st part which I create the image and push it to docker hub</p>
  
  <p>my question is how to execute a docker commands from the jenkins pipeline to the my application server to pull the image from docker hub and run it</p>