-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[APIv2] building container with isolation=default started failing after #9246 #9290
Comments
@rhatdan PTAL |
FYI: this error is still happening in 25d8195 |
FYI: this error is still happening in c4a5513 |
Another problem it that the valid value set is different for const (
// IsolationDefault is whatever we think will work best.
IsolationDefault Isolation = iota
// IsolationOCI is a proper OCI runtime.
IsolationOCI
// IsolationChroot is a more chroot-like environment: less isolation,
// but with fewer requirements.
IsolationChroot
// IsolationOCIRootless is a proper OCI runtime in rootless mode.
IsolationOCIRootless
) versus type Isolation string
// IsDefault indicates the default isolation technology of a container. On Linux this
// is the native driver. On Windows, this is a Windows Server Container.
func (i Isolation) IsDefault() bool {
return strings.ToLower(string(i)) == "default" || string(i) == ""
}
// IsHyperV indicates the use of a Hyper-V partition for isolation
func (i Isolation) IsHyperV() bool {
return strings.ToLower(string(i)) == "hyperv"
}
// IsProcess indicates the use of process isolation
func (i Isolation) IsProcess() bool {
return strings.ToLower(string(i)) == "process"
} Is there any way how to map those values to each other? |
I think that isolation is valid only for Windows daemons, so we can accept only |
@rhatdan now I see it's probably new param to build, unlike the wait condition parameter. |
Honestly, it would be simpler to just be ignore it completely for the Compat endpoint - no validation or errors. This is an unfortunate case where the parameter means entirely different things for Libpod and Compat. |
I locally fixed the |
@matejvasek - was the "networkmode" value issue ever solved? I'm also getting this in |
@guss77 what is reproducer for this? What does |
OK I can reproduce it on |
It seems to work with |
@guss77 try installing from |
Indeed - installing 3.2.3 from |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Trying to find regressions by exercising the APIv2 trough docker-py's test suite (see #5386) I came across a regressions in the
BuildTest::test_build_isolation
test.Building containers with
isolation=default
started failing with commit 19507d0.Steps to reproduce the issue:
tar cf test.tar Dockerfile
curl -sS --unix-socket /var/run/user/1000/podman/podman.sock -XPOST 'http://localhost/v1.40/build?t=isolation&isolation=default' -H "Content-Type: application/tar" --data-binary '@test.tar'
Describe the results you received:
Run against commit 19507d0:
Describe the results you expected:
Run against commit 2bf1321:
The text was updated successfully, but these errors were encountered: