title: Pushing images to docker registry using docker-client api
body: <p>While exploring docker-client api (java) what certificates are exactly required for setting up connection to the docker daemon running on a vm.</p>
  
  <p>The code which I found online :</p>
  
  <pre><code>{
  // Create a client based on DOCKER_HOST and DOCKER_CERT_PATH env vars
  final DockerClient docker = DefaultDockerClient.fromEnv().build();
  
  // Pull an image
  docker.pull("busybox");
  
  }
  </code></pre>
  
  <p>The link to above example is available at : <a href="https://github.com/spotify/docker-client" rel="nofollow noreferrer">https://github.com/spotify/docker-client</a></p>
  
  <p>What I intend to do is access docker-daemon running on my master node(deployed through magnum api) and push my java applications docker-image onto the registry so that I can create pods on my cluster using these images. </p>
  
  <p>I am not sure what more needs to be done as I am new to this. </p>