[Docker EE]Can't configure Notary CLI

Expected behavior

Running notary commands.

Actual behavior

When I type notary, I get this:

/usr/bin/notary: line 1: syntax error near unexpected token <’
/usr/bin/notary: linPreformatted texte 1: <html><body>You are being <a href="https://github-cloud.s3.amazonaws.com/releases/37743436/235cc514-8737-11e6-9680-7b88f50cb89b?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20170327%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20170327T150651Z&amp;X-Amz-Expires=300&amp;X-Amz-Signature=7a207b7c8f84e78506c60b0698117aef6bedf967c2b4c4fe4ec936d159ec3597&amp;X-Amz-SignedHeaders=host&amp;actor_id=0&amp;response-content-disposition=attachment%3B%20filename%3Dnotary-Linux-amd64&amp;response-content-type=application%2Foctet-stream">redirected</a>.</body></html>'

Additional Information

Steps to reproduce the behavior

  1. Run Docker EE(free trial) on AWS.
  2. Download ucp-bundle-admin and access UCP.
  3. Follow the steps in Docker Docs
Get the latest binary

curl <download-url> -o notary

Make it executable

chmod +x notary

Move it to a location in your path

sudo mv notary /usr/bin/

I think the step curl <download-url> -o notary is downloading an html page instead of the notary binary.

You can confirm if that’s the case by running

file notary
# notary: HTML document, ASCII text ----> you're downloading html
# notary: ELF 64-bit LSB executable -----> you're downloading an executable file

If that’s the case, use this download command instead:

curl -L <download url> -o notary

# For the latest Notary for Linux, this should look like
curl -L https://github.com/docker/notary/releases/download/v0.4.3/notary-Linux-amd64 -o notary
1 Like