Skip to content

Experimental CLI Configuration #5718

Description

@ollypom

Problem description

Some of the new Docker CLI commands are hidden behind the new Experimental CLI flag.

I.e.

$ docker trust
docker trust is only supported when experimental cli features are enabled

However I can't find any documentation on how to enable experimental CLI. I was able to work out that you need to update your .docker/config.json file with

"experimental": "enabled"

And then your able to run:

$ docker trust Usage: docker trust COMMAND
Manage trust on Docker images (experimental)
Options:
Management Commands:
key Manage keys for signing Docker images (experimental)
signer Manage entities who can sign Docker images (experimental)
Commands:
inspect Return low-level information about keys and signatures
revoke Remove trust for an image
sign Sign an image
view Display detailed information about keys and signatures
Run 'docker trust COMMAND --help' for more information on a command.

Problem location

Looks like the PR came in here:
docker/cli#758

I'm not quite sure where that documentation needs to go, as I can't find a place for .docker/config.json information. The closest I have is:

https://docs.docker.com/engine/reference/commandline/cli/

But I definitely think we need some sort of warning on here:
https://docs.docker.com/edge/engine/reference/commandline/trust/

Project version(s) affected

Docker Engine CE 17.12 and newer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions