diff options
author | Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp> | 2021-08-28 00:21:31 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-28 00:21:31 +0900 |
commit | 9e7bbdb9ba53440cfc67e2e1de89e35e44c43ddf (patch) | |
tree | 4975e375bde8a6359a7ee4f429c1ff83822fe3fd /daemon/oci_linux_test.go | |
parent | 085c6a98d54720e70b28354ccec6da9b1b9e7fcf (diff) | |
parent | 6948ab4fa187e0fec2455e51073a92b932818617 (diff) | |
download | docker-9e7bbdb9ba53440cfc67e2e1de89e35e44c43ddf.tar.gz |
Merge pull request #40084 from thaJeztah/hostconfig_const_cleanup
api/types: hostconfig: add some constants/enums and minor code cleanup
Diffstat (limited to 'daemon/oci_linux_test.go')
-rw-r--r-- | daemon/oci_linux_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/oci_linux_test.go b/daemon/oci_linux_test.go index 927cd90dc2..8e0d7c77a7 100644 --- a/daemon/oci_linux_test.go +++ b/daemon/oci_linux_test.go @@ -66,7 +66,7 @@ func TestTmpfsDevShmNoDupMount(t *testing.T) { c := &container.Container{ ShmPath: "foobar", // non-empty, for c.IpcMounts() to work HostConfig: &containertypes.HostConfig{ - IpcMode: containertypes.IpcMode("shareable"), // default mode + IpcMode: containertypes.IPCModeShareable, // default mode // --tmpfs /dev/shm:rw,exec,size=NNN Tmpfs: map[string]string{ "/dev/shm": "rw,exec,size=1g", @@ -88,7 +88,7 @@ func TestIpcPrivateVsReadonly(t *testing.T) { skip.If(t, os.Getuid() != 0, "skipping test that requires root") c := &container.Container{ HostConfig: &containertypes.HostConfig{ - IpcMode: containertypes.IpcMode("private"), + IpcMode: containertypes.IPCModePrivate, ReadonlyRootfs: true, }, } |