title: Installing aws cli using pip in Docker file
body: <p>I am getting this error while trying to install aws cli from pip.</p>
  <pre><code>ERROR: Service 'remote_host' failed to build: The command '/bin/sh -c curl -O https://bootstrap.pypa.io/get-pip.py &amp;&amp;     python3 get-pip.py &amp;&amp;     pip3 install awscli --upgrade' returned a non-zero code: 127
  </code></pre>
  <p><strong>Docker File</strong>:</p>
  <pre><code>FROM centos
  RUN yum -y install openssh-server
  RUN useradd remote_user &amp;&amp; \
      echo remote_user:1234 | chpasswd &amp;&amp; \
      mkdir /home/remote_user/.ssh &amp;&amp; \
      chmod 700 /home/remote_user/.ssh
  COPY remote-key.pub /home/remote_user/.ssh/authorized_keys
  RUN chown remote_user:remote_user -R /home/remote_user/.ssh &amp;&amp; \
      chmod 600 /home/remote_user/.ssh/authorized_keys
  RUN /usr/bin/ssh-keygen -A
  EXPOSE 22
  RUN rm -rf /run/nologin
  
  RUN yum -y install mysql
  RUN curl -O https://bootstrap.pypa.io/get-pip.py &amp;&amp; \
      python3 get-pip.py &amp;&amp; \
      pip3 install awscli --upgrade
   
  CMD /usr/sbin/sshd -D
  </code></pre>
  <p><strong>Issue</strong> This is my Docker file and I'm getting error by this. can someone help me with this. Any suggestions will be highly appreciated.</p>