Error: unknown shorthand flag: 'r' in -r

I want to use delegates with DOCKER CONTENT TRUST. I generated the delegate.crt/key on the collaborator’s machine and now I am trying to rotate the snapshot key with:

notary key rotate localhost:5000/ubuntu snapshot -r

  • Is it possible using the Docker remote API to copy an image to another host?
  • GitLab CI Runner, how to use volumes or mounts in service containers
  • Docker - can not start mysql permission error
  • Docker Build can't find pip
  • ERR_CONNECTION_REFUSED by docker container
  • how can I open a flask app on my browser that's running remotely on docker?
  • => Error: unknown shorthand flag: ‘r’ in -r
    notary key rotate [ GUN ] [flags]

    Thank you in advanced!

  • Docker Redis container orderly shutdown
  • Regarding not getting GNU awk version after creating a docker basic container
  • Is there a way to avoid pushing node_modules on every push using Docker?
  • Multiple SymmetricDS instances at same host
  • Docker : How To Dockerize And Deploy multiple instances of a LAMP Application
  • Connecting to remote activemq instance running on docker container
  • 2 Solutions collect form web for “Error: unknown shorthand flag: 'r' in -r”

    (Disclaimer: I know zilch about Docker Notary, so this might be completely bogus)

    According to the Notary documentation:

    The root and targets key must be locally managed – to rotate either
    the root or targets key, for instance in case of compromise, use the
    notary key rotate command without the -r flag. The timestamp key must
    be remotely managed – to rotate the timestamp key use the notary key
    rotate timestamp -r command.

    So I’d guess you’re trying to use a non-locally managed root or targets key which apparently is not supported.

    Had “unknown shorthand flag: ‘r’ in -rm” error but due bad argument, not that I wanted delegation.


    $ docker run --rm busybox echo hello world 


    unknown shorthand flag: 'r' in -rm

    The correct parameter is --rm two dashes.

    $ docker run --rm busybox echo hello world 

    the –rm flag that can be passed to docker run which automatically
    deletes the container once it’s exited from.


    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.