Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

notary

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

=> Error: unknown shorthand flag: 'r' in -r
Usage:
  notary key rotate [ GUN ] [flags]

Why am I getting this error?

like image 275
BiltiuLena Avatar asked Feb 05 '23 22:02

BiltiuLena


1 Answers

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

like image 183
hthetiot Avatar answered Jun 28 '23 10:06

hthetiot