| 185 | } |
| 186 | |
| 187 | func TestRunIpcHost(t *testing.T) { |
| 188 | t.Parallel() |
| 189 | base := testutil.NewBase(t) |
| 190 | testFilePath := filepath.Join("/dev/shm", |
| 191 | fmt.Sprintf("%s-%d-%s", testutil.Identifier(t), os.Geteuid(), base.Target)) |
| 192 | err := os.WriteFile(testFilePath, []byte(""), 0o644) |
| 193 | assert.NilError(base.T, err) |
| 194 | defer os.Remove(testFilePath) |
| 195 | |
| 196 | base.Cmd("run", "--rm", "--ipc=host", testutil.AlpineImage, "ls", testFilePath).AssertOK() |
| 197 | } |
| 198 | |
| 199 | func TestRunAddHost(t *testing.T) { |
| 200 | // Not parallelizable (https://github.com/containerd/nerdctl/issues/1127) |