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

  • Gitlab-CI multi runner start docker container, scripts now work
  • How to get dockerfile to evaluate environment variables I sent to it?
  • Debug Nodejs inside Docker container
  • Create user in ubuntu docker instead using root
  • docker-compose referencing wrong ports
  • Force Docker to cache directory
  • => Error: unknown shorthand flag: ‘r’ in -r
    Usage:
    notary key rotate [ GUN ] [flags]

    Thank you in advanced!

  • install mongoose in docker container
  • Bash brace expansion not working on Dockerfile RUN command
  • Is it possible to run match servers on Kubernetes for a Real Time Multiplayer game?
  • Docker-Compose error with Kanban and Redis
  • Node.js + Docker Compose: node_modules disappears
  • Docker Compose - Logstash - exited with code 0 after start
  • 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.

    Was:

    $ docker run --rm busybox echo hello world 
    

    Causing:

    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.

    Source: https://github.com/prakhar1989/docker-curriculum#11-docker-run

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