display command display in docker ps
Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux) Upstream-commit: 5921b186d17b172f205f3b0b6bda1f3a4e650d3f Component: engine
This commit is contained in:
@@ -1003,7 +1003,7 @@ func (srv *Server) Containers(job *engine.Job) engine.Status {
|
||||
out.SetList("Names", names[container.ID])
|
||||
out.Set("Image", srv.runtime.Repositories().ImageName(container.Image))
|
||||
if len(container.Args) > 0 {
|
||||
out.Set("Command", fmt.Sprintf("\"%s %s\"", container.Path, strings.Join(container.Args, " ")))
|
||||
out.Set("Command", fmt.Sprintf("\"%s %s\"", container.Path, container.ArgsAsString()))
|
||||
} else {
|
||||
out.Set("Command", fmt.Sprintf("\"%s\"", container.Path))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user