cloud-integration-beta icon indicating copy to clipboard operation
cloud-integration-beta copied to clipboard

Not able to install the script (install.sh)

Open Dminor7 opened this issue 5 years ago • 2 comments

I ran the following given command in the document

curl -L https://raw.githubusercontent.com/docker/aci-integration-beta/main/scripts/install_linux.sh | sh

It gives me below error Checks passed! Downloading CLI... curl: no URL specified! curl: try 'curl --help' or 'curl --manual' for more information

I also tested the given Dockerfile-testInstall It is also giving same error.

I guess the issue is in the below lines


# Download CLI to temporary directory
download_dir=$($sh_c 'mktemp -d')
$sh_c "${download_cmd} ${download_dir}/docker-aci ${DOWNLOAD_URL}"

Might be the variables aren't populating

Dminor7 avatar Sep 25 '20 14:09 Dminor7

Hi - I was able to fix by modifying line 91 as follows: DOWNLOAD_URL=$(curl -sL ${RELEASE_URL} | grep "browser_download_url.*docker-linux-amd64" | cut -d : -f 2,3) The addition of L to curl options follows the redirect that may have either been added later, or missed due to differences in curl behavior somewhere. I plan to open a PR for the change.

josh-dix avatar Sep 28 '20 12:09 josh-dix

Hi - I was able to fix by modifying line 91 as follows: DOWNLOAD_URL=$(curl -sL ${RELEASE_URL} | grep "browser_download_url.*docker-linux-amd64" | cut -d : -f 2,3) The addition of L to curl options follows the redirect that may have either been added later, or missed due to differences in curl behavior somewhere. I plan to open a PR for the change.

This did not fix it for me. Error still appears. Printed $DOWNLOAD_URL and it is empty

davidluque1 avatar Sep 28 '20 21:09 davidluque1