When I run buildah
, I typically use a heredoc,
ctr=$(buildah from alpine:3);
buildah run $ctr sh -- <<EOF
apk update;
apk add git;
EOF
buildah commit $ctr heredoc_demo;
However, when I try to do the same thing with podman, I get an error like this,
WARN[0000] The input device is not a TTY. The --tty and --interactive flags might not work properly
Which you can get with,
❯ podman run -ti alpine:3 sh -- <<EOF
echo 42
EOF
WARN[0000] The input device is not a TTY. The `--tty` and `--interactive` flags might not work properly
Or nothing happens as with
podman run alpine:3 sh <<EOF
What is the right invocation here?