Skip to content
Advertisement

download & install openshift cli command not working

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.

JavaScript

But I am getting the following error

JavaScript

Current

curl: (23) Failed writing body (1354 != 1371)

Advertisement

Answer

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 will extract the files in the tarball, so finally, the files in that folder would be next:

JavaScript

You could see no openshift-client-linux-4.6.0-0.okd-2021-02-14-205305.tar.gz there, if you really need it, you need do as next:

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 to write it to folder.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement