shared_mount_test.go 350 B

12345678910111213141516171819
  1. package integration
  2. import (
  3. "fmt"
  4. . "gopkg.in/check.v1"
  5. )
  6. func (s *QemuSuite) TestSharedMount(c *C) {
  7. s.RunQemu(c)
  8. s.CheckCall(c, fmt.Sprintf(`
  9. set -x -e
  10. sudo mkdir /mnt/shared
  11. sudo touch /test
  12. sudo system-docker run --privileged -v /mnt:/mnt:shared -v /test:/test %s mount --bind / /mnt/shared
  13. ls /mnt/shared | grep test`, BusyboxImage))
  14. }