mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add security info to docker info
The security infomation has already been added to `GET /info` in #21172. However, it is not part of the output of `docker info` yet. This fix adds the security information to `docker info`. Additional tests has been added to cover changes. This fix fixes #23500. This fix is related to #20909, #21172. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
parent
6381ed14d1
commit
eee20b564f
3 changed files with 20 additions and 0 deletions
15
integration-cli/docker_cli_info_unix_test.go
Normal file
15
integration-cli/docker_cli_info_unix_test.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
// +build !windows
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/docker/docker/pkg/integration/checker"
|
||||
"github.com/go-check/check"
|
||||
)
|
||||
|
||||
func (s *DockerSuite) TestInfoSecurityOptions(c *check.C) {
|
||||
testRequires(c, SameHostDaemon, seccompEnabled, Apparmor, DaemonIsLinux)
|
||||
|
||||
out, _ := dockerCmd(c, "info")
|
||||
c.Assert(out, checker.Contains, "Security Options: apparmor seccomp")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue