mirror of
https://github.com/containers/podman.git
synced 2025-05-21 00:56:36 +08:00
Fix podman build --pull-never
Currently pull policy is set incorrectly when users set --pull-never. Also pull-policy is not being translated correctly when using podman-remote. Fixes: #9573 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package integration
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
. "github.com/containers/podman/v3/test/utils"
|
||||
@ -46,9 +47,9 @@ var _ = Describe("Podman run", func() {
|
||||
})
|
||||
|
||||
It("podman run a container on an image with a workdir", func() {
|
||||
dockerfile := `FROM alpine
|
||||
dockerfile := fmt.Sprintf(`FROM %s
|
||||
RUN mkdir -p /home/foobar /etc/foobar; chown bin:bin /etc/foobar
|
||||
WORKDIR /etc/foobar`
|
||||
WORKDIR /etc/foobar`, ALPINE)
|
||||
podmanTest.BuildImage(dockerfile, "test", "false")
|
||||
|
||||
session := podmanTest.Podman([]string{"run", "test", "pwd"})
|
||||
|
Reference in New Issue
Block a user