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

  • How to delete unused docker images in swarm?
  • Write to file in Java App running on Docker
  • Docker run override entrypoint with shell script which accepts arguments
  • docker with shared folder d drive
  • Docker compose run migrations on django web application + postgres db
  • WordPress causing Docker to crash
  • => Error: unknown shorthand flag: ‘r’ in -r
    notary key rotate [ GUN ] [flags]

    Thank you in advanced!

  • PID 1 in Docker persistance
  • Deploying to dockerized Jboss Zip Exception
  • Ansible: no package available for docker-ce
  • RUnit does not stop docker-compose's containers
  • Docker Plugin for Jenkins Pipeline - No user exists for uid 1005
  • continuous integration of docker image by running locally with its own IP?
  • 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.