1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

integration-cli: TestRemoveContainerAfterLiveRestore use overlay2

the overlay storage driver is deprecated, so we might as well use overlay2
for this test.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-05-24 17:28:14 +02:00
parent 235f86270d
commit 18529568d3
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -2690,14 +2690,14 @@ func (s *DockerDaemonSuite) TestExecWithUserAfterLiveRestore(c *testing.T) {
func (s *DockerDaemonSuite) TestRemoveContainerAfterLiveRestore(c *testing.T) {
testRequires(c, DaemonIsLinux, overlayFSSupported, testEnv.IsLocalDaemon)
s.d.StartWithBusybox(c, "--live-restore", "--storage-driver", "overlay")
s.d.StartWithBusybox(c, "--live-restore", "--storage-driver", "overlay2")
out, err := s.d.Cmd("run", "-d", "--name=top", "busybox", "top")
assert.NilError(c, err, "Output: %s", out)
s.d.WaitRun("top")
// restart daemon.
s.d.Restart(c, "--live-restore", "--storage-driver", "overlay")
s.d.Restart(c, "--live-restore", "--storage-driver", "overlay2")
out, err = s.d.Cmd("stop", "top")
assert.NilError(c, err, "Output: %s", out)