summaryrefslogtreecommitdiff
path: root/libpod/container.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-10-12 08:31:56 -0700
committerGitHub <noreply@github.com>2018-10-12 08:31:56 -0700
commitb0b6dc40bd916698f87bc68f7b4b603582e93ef2 (patch)
tree44c98351368924013f8a27e3f7c1f66c0953b08c /libpod/container.go
parent9a933c70b1cf60c48211bc700d726074aa4536a0 (diff)
parent04a537756d9b7b526759c02b5b5d68c135b210ea (diff)
downloadpodman-b0b6dc40bd916698f87bc68f7b4b603582e93ef2.tar.gz
podman-b0b6dc40bd916698f87bc68f7b4b603582e93ef2.tar.bz2
podman-b0b6dc40bd916698f87bc68f7b4b603582e93ef2.zip
Merge pull request #1558 from rhatdan/user
Generate a passwd file for users not in container
Diffstat (limited to 'libpod/container.go')
-rw-r--r--libpod/container.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpod/container.go b/libpod/container.go
index 5997c0b66..4e17b1102 100644
--- a/libpod/container.go
+++ b/libpod/container.go
@@ -642,6 +642,11 @@ func (c *Container) Hostname() string {
return c.ID()[:12]
}
+// WorkingDir returns the containers working dir
+func (c *Container) WorkingDir() string {
+ return c.config.Spec.Process.Cwd
+}
+
// State Accessors
// Require locking