gpt4 book ai didi

公证人返回错误 : unknown shorthand flag: 'r' in -r

转载 作者:行者123 更新时间:2023-12-02 04:02:31 30 4
gpt4 key购买 nike

我想将委托(delegate)与 DOCKER CONTENT TRUST 一起使用。我在协作者的计算机上生成了 delegate.crt/key,现在我尝试使用以下方法轮换快照 key :

notary key rotate localhost:5000/ubuntu snapshot -r

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

为什么我会收到此错误?

最佳答案

有“未知的速记标志:'r' in -rm”错误,但由于参数错误,而不是我想要委托(delegate)。

曾经:

$ docker run -rm busybox echo hello world 

造成:

unknown shorthand flag: 'r' in -rm

正确的参数是--rm两个破折号。

$ docker run --rm busybox echo hello world 

the --rm flag that can be passed to docker run which automaticallydeletes the container once it's exited from.

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

关于公证人返回错误 : unknown shorthand flag: 'r' in -r,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40038515/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com