preload_test.go 480 B

123456789101112131415161718192021222324
  1. package integration
  2. import (
  3. . "gopkg.in/check.v1"
  4. )
  5. func (s *QemuSuite) TestPreload(c *C) {
  6. err := s.RunQemu()
  7. c.Assert(err, IsNil)
  8. s.CheckCall(c, `
  9. docker pull busybox
  10. sudo docker save -o /var/lib/rancher/preload/system-docker/busybox.tar busybox
  11. sudo system-docker pull alpine
  12. sudo system-docker save -o /var/lib/rancher/preload/docker/alpine.tar alpine`)
  13. s.Reboot(c)
  14. s.CheckCall(c, `
  15. sleep 5
  16. sudo system-docker images | grep busybox
  17. docker images | grep alpine`)
  18. }