aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-09-01 11:18:44 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-09-06 17:54:52 +0000
commitdc025819f40cdf80b607c4218ba9ad5ef96aa0a6 (patch)
tree2307e1720cec413da297508cd91cd2e022af4513 /cmd/podman
parenta40aa7e9c8d5642e57add77ac3d9b92d174f9add (diff)
downloadpodman-dc025819f40cdf80b607c4218ba9ad5ef96aa0a6.tar.gz
podman-dc025819f40cdf80b607c4218ba9ad5ef96aa0a6.tar.bz2
podman-dc025819f40cdf80b607c4218ba9ad5ef96aa0a6.zip
Fix nameing of Namespaces to be more consistent
Figuring out the difference between a User and a USERNS as well as Cgroup and CGROUPNS Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1417 Approved by: TomSweeneyRedHat
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/common.go4
-rw-r--r--cmd/podman/ps.go10
2 files changed, 7 insertions, 7 deletions
diff --git a/cmd/podman/common.go b/cmd/podman/common.go
index 8b941412f..578de7f38 100644
--- a/cmd/podman/common.go
+++ b/cmd/podman/common.go
@@ -250,7 +250,7 @@ var createFlags = []cli.Flag{
},
cli.StringFlag{
Name: "ipc",
- Usage: "IPC Namespace to use",
+ Usage: "IPC namespace to use",
},
cli.StringFlag{
Name: "kernel-memory",
@@ -312,7 +312,7 @@ var createFlags = []cli.Flag{
},
cli.StringFlag{
Name: "pid",
- Usage: "PID Namespace to use",
+ Usage: "PID namespace to use",
},
cli.Int64Flag{
Name: "pids-limit",
diff --git a/cmd/podman/ps.go b/cmd/podman/ps.go
index 07e3bb676..d36c929e8 100644
--- a/cmd/podman/ps.go
+++ b/cmd/podman/ps.go
@@ -36,12 +36,12 @@ type psTemplateParams struct {
Labels string
Mounts string
PID int
- Cgroup string
+ CGROUPNS string
IPC string
MNT string
NET string
PIDNS string
- User string
+ USERNS string
UTS string
Pod string
IsInfra bool
@@ -435,7 +435,7 @@ func genPsFormat(format string, quiet, size, namespace, pod, infra bool) string
podappend = "{{.Pod}}\t"
}
if namespace {
- return fmt.Sprintf("table {{.ID}}\t{{.Names}}\t%s{{.PID}}\t{{.Cgroup}}\t{{.IPC}}\t{{.MNT}}\t{{.NET}}\t{{.PIDNS}}\t{{.User}}\t{{.UTS}}", podappend)
+ return fmt.Sprintf("table {{.ID}}\t{{.Names}}\t%s{{.PID}}\t{{.CGROUPNS}}\t{{.IPC}}\t{{.MNT}}\t{{.NET}}\t{{.PIDNS}}\t{{.USERNS}}\t{{.UTS}}", podappend)
}
format = "table {{.ID}}\t{{.Image}}\t{{.Command}}\t{{.Created}}\t{{.Status}}\t{{.Ports}}\t{{.Names}}\t"
format += podappend
@@ -583,12 +583,12 @@ func getTemplateOutput(psParams []psJSONParams, opts shared.PsOptions) ([]psTemp
}
if opts.Namespace {
- params.Cgroup = ns.Cgroup
+ params.CGROUPNS = ns.Cgroup
params.IPC = ns.IPC
params.MNT = ns.MNT
params.NET = ns.NET
params.PIDNS = ns.PIDNS
- params.User = ns.User
+ params.USERNS = ns.User
params.UTS = ns.UTS
}
psOutput = append(psOutput, params)