<p>I want to add the download and installation step of OpenShift CLI 4.6 on a docker file. I have added the following lines but it's not working.</p>
<pre><code>RUN curl -L https://github.com/openshift/okd/releases/download/4.6.0-0.okd-2021-02-14-205305/openshift-client-linux-4.6.0-0.okd-2021-02-14-205305.tar.gz \
   | tar xz &amp;&amp; install openshift-client-linux-4.6.0-0.okd-2021-02-14-205305.tar.gz /usr/bin/oc &amp;&amp; rm -rf openshift*
</code></pre>
<p>But I am getting the following error</p>
<pre><code>tar (child): openshift-client-linux-4.6.0-0.okd-2021-02-14-205305.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
% Total    % Received % Xferd  Average Speed   Time    Time     Time 
</code></pre>
<p>Current</p>
<p>curl: (23) Failed writing body (1354 != 1371)</p>

TAMIM HAIDER
<p><code>curl -L https://github.com/openshift/okd/releases/download/4.6.0-0.okd-2021-02-14-205305/openshift-client-linux-4.6.0-0.okd-2021-02-14-205305.tar.gz | tar xz</code> will extract the files in the tarball, so finally, the files in that folder would be next:</p>
<pre><code>$ ls
kubectl  oc  README.md
</code></pre>
<p>You could see no <code>openshift-client-linux-4.6.0-0.okd-2021-02-14-205305.tar.gz</code> there, if you really need it, you need do as next:</p>
<p><code>curl -L https://github.com/openshift/okd/releases/download/4.6.0-0.okd-2021-02-14-205305/openshift-client-linux-4.6.0-0.okd-2021-02-14-205305.tar.gz -O</code> to write it to folder.</p>
