summaryrefslogtreecommitdiffhomepage
path: root/runsc/test/testutil/docker.go
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2019-01-31 15:17:50 -0800
committerShentubot <shentubot@google.com>2019-01-31 15:19:04 -0800
commit4e695adcd0c739101c3d50431ca18b1b911c9238 (patch)
tree2eb6bd3696011463e521adea2da10978dde59a95 /runsc/test/testutil/docker.go
parent88b4ce8cac9c438da472205e0e710dd75e73b050 (diff)
gvisor/gofer: Use pivot_root instead of chroot
PiperOrigin-RevId: 231864273 Change-Id: I8545b72b615f5c2945df374b801b80be64ec3e13
Diffstat (limited to 'runsc/test/testutil/docker.go')
-rw-r--r--runsc/test/testutil/docker.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/runsc/test/testutil/docker.go b/runsc/test/testutil/docker.go
index 9a76397be..5a92a5835 100644
--- a/runsc/test/testutil/docker.go
+++ b/runsc/test/testutil/docker.go
@@ -297,15 +297,6 @@ func (d *Docker) SandboxPid() (int, error) {
return pid, nil
}
-// RootDirInHost returns where the root directory is mapped on the host.
-func (d *Docker) RootDirInHost() (string, error) {
- out, err := do("inspect", "-f={{.GraphDriver.Data.MergedDir}}", d.Name)
- if err != nil {
- return "", fmt.Errorf("error retrieving pid: %v", err)
- }
- return strings.TrimSuffix(string(out), "\n"), nil
-}
-
// ID returns the container ID.
func (d *Docker) ID() (string, error) {
out, err := do("inspect", "-f={{.Id}}", d.Name)