title: How to authenticate docker client commands in AWS?
body: <p>Below authentication can be implemented using certificates(client &amp; server), for any human user using docker client that talks to docker daemon:</p>
  
  <h2><a href="https://i.stack.imgur.com/xF2T8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xF2T8.png" alt="enter image description here"></a></h2>
  
  <p>But, jenkins pipeline also run docker commands to talk to docker daemon.</p>
  
  <p>How to authenticate jenkins pipeline to run specific docker commands? where this pipeline is launched as jenkins slave container in AWS EC2 on every new commit in Git..... Does ECS cluster approach in launching pipeline task help in authentication?</p>