Docker Community Forums

Share and learn in the Docker community.

[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=";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
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 -o notary
1 Like