Hi, is there a way to use podman instead of docker...
# flyte-v1-support
c
Hi, is there a way to use podman instead of docker to build images when running
pyflyte run --remote
?
or buildah for that matter
a
OOB, it only supports docker. To build using podman, you can do as below:
Copy code
alias docker=podman
Since both are OCI complaint both should work, but test it out. All the commands that work with docker should work with podman. Try out these commands below after setting the alias and see if it works:
Copy code
docker build -t <TAG> <SOME_DOCKER_FILE>
docker container rm flyte-sandbox --force
docker volume create flyte-sandbox

docker pull  cr.flyte.org/flyteorg/flyte-sandbox-bundled:sha-8b999cef8739bd3a117d9dd3b9a16b06493605bd 

docker create --privileged -p 0.0.0.0:30080:30080 -p 0.0.0.0:30000:30000 -p 0.0.0.0:30001:30001 -p 0.0.0.0:30002:30002 -p 0.0.0.0:30003:30003 -p 0.0.0.0:6443:6443 --env SANDBOX=1 --env KUBERNETES_API_PORT=30086 --env FLYTE_HOST=localhost:30081 --env FLYTE_AWS_ENDPOINT=<http://localhost:30084> --env K3S_KUBECONFIG_OUTPUT=/var/lib/flyte/config/kubeconfig --mount type=bind,source=~/.flyte,target=/etc/rancher/ --mount type=bind,source=~/.flyte/sandbox,target=/var/lib/flyte/config --mount type=volume,source=flyte-sandbox,target=/var/lib/flyte/storage --name flyte-sandbox cr.flyte.org/flyteorg/flyte-sandbox-bundled:sha-8b999cef8739bd3a117d9dd3b9a16b06493605bd

docker start flyte-sandbox

docker logs -f flyte-sandbox
Later i might be raising a PR to set the container type (docker/podman/apple-container), but thats not available right now
c
I tried unfortunately the
--push
flag is not supported on my podman version (4.9.3 it's managed by enterprise, so nothing I can do about it)
a
Currently it only has docker support. Adding podman support won’t be difficult as a go package is available
<https://pkg.go.dev/github.com/containers/podman/v5#section-readme>
For apple containers it would be tricky at this time as it’s still in development stage and will take sometime to get to a stable release
c
Great news, where would that fit on the roadmap?
a
I am not sure about that. Someone from flyte team can answer it @average-finland-92144 @glamorous-carpet-83516
One quick question, if build and push is the proble, why don’t you separate it from your workflow. That is build and push using
podman
and then use the container with flyte
c
I can try that, I was naively following the flyte getting started tutorial