我们想在我们的环境中启用Docker信任(图像签名)。从哪个版本的docker支持trust命令?
现在,我们有了带有docker 1.13.1的RHEL 7(默认情况下已捆绑)。此版本不支持任何信任命令。还是我们需要Docker Enterprise版本的信任功能?
答案 0 :(得分:0)
docker trust
命令行在Docker CE CLI的当前稳定版本中可用。您需要直接从Docker的存储库而不是RedHat的过时的fork安装。 CentOS的说明已在RHEL上为我工作:
https://docs.docker.com/install/linux/docker-ce/centos/
以下是Debian安装中的日志:
$ docker version
Client:
Version: 18.09.6
API version: 1.39
Go version: go1.10.8
Git commit: 481bc77
Built: Sat May 4 02:36:00 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.6
API version: 1.39 (minimum version 1.12)
Go version: go1.10.8
Git commit: 481bc77
Built: Sat May 4 01:59:36 2019
OS/Arch: linux/amd64
Experimental: false
$ docker trust --help
Usage: docker trust COMMAND
Manage trust on Docker images
Management Commands:
key Manage keys for signing Docker images
signer Manage entities who can sign Docker images
Commands:
inspect Return low-level information about keys and signatures
revoke Remove trust for an image
sign Sign an image
Run 'docker trust COMMAND --help' for more information on a command.