mirror of
https://github.com/moby/moby.git
synced 2026-08-03 22:51:03 +00:00
Merge pull request #6573 from mheon/ps_cleanup
Escape control and nonprintable characters in docker ps
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user