Skip to content

Commit

Permalink
try to fix rootless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vikstrous committed Dec 2, 2024
1 parent 1ad63a3 commit 1ef4fa2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func TestWithinContainerStage1(t *testing.T) {
if providerType != ProviderDocker {
t.Skip("This is a docker-specific test.")
}
socketPath := MustExtractDockerSocket(context.Background())
dir, err := os.Getwd()
require.NoError(t, err)
req := ContainerRequest{
Expand All @@ -67,8 +68,8 @@ func TestWithinContainerStage1(t *testing.T) {
Target: dir,
}, mount.Mount{
Type: "bind",
Source: "/var/run",
Target: "/var/run",
Source: socketPath,
Target: socketPath,
})
},
Entrypoint: []string{"sleep", "100"},
Expand Down

0 comments on commit 1ef4fa2

Please sign in to comment.