mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
[NO TESTS NEEDED] Turn on podman-remote build --isolation
Currently podman only works with --isolation chroot. This PR fixes this by allowing the isolation mode to default to OCI and to also allow users to pass the isolation mode into the containers. The current tests for --isolation should cause this code to be tested. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -199,13 +199,9 @@ func BuildImage(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
format := buildah.Dockerv2ImageManifest
|
||||
registry := query.Registry
|
||||
isolation := buildah.IsolationChroot
|
||||
/*
|
||||
// FIXME, This is very broken. Buildah will only work with chroot
|
||||
isolation := buildah.IsolationDefault
|
||||
*/
|
||||
isolation := buildah.IsolationDefault
|
||||
if utils.IsLibpodRequest(r) {
|
||||
// isolation = parseLibPodIsolation(query.Isolation)
|
||||
isolation = parseLibPodIsolation(query.Isolation)
|
||||
registry = ""
|
||||
format = query.OutputFormat
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user