Merge pull request #6573 from mheon/ps_cleanup
Escape control and nonprintable characters in docker ps
This commit is contained in:
commit
2ffd13bc31
1 changed files with 1 additions and 0 deletions
|
@ -1511,6 +1511,7 @@ func (cli *DockerCli) CmdPs(args ...string) error {
|
|||
outCommand = out.Get("Command")
|
||||
ports = engine.NewTable("", 0)
|
||||
)
|
||||
outCommand = strconv.Quote(outCommand)
|
||||
if !*noTrunc {
|
||||
outCommand = utils.Trunc(outCommand, 20)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue