1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #6573 from mheon/ps_cleanup

Escape control and nonprintable characters in docker ps
This commit is contained in:
unclejack 2014-07-07 18:23:18 +03:00
commit 2ffd13bc31

View file

@ -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)
}