Open mansilva opened 1 year ago
The current implementation of fnproject/fn is incompatible with Podman (Thing that runs on fn start
). I've tried to recompile fnproject/fn with the fix to the older version fix too, but it does not work. The problem is fnproject/fn's client layer is written with an old docker client and that does not work properly with Podman, even with the Podman service running exposed on a socket. Your best bet is to install docker for local development, but the best way really is to try out the project directly in OCI.
Hello,
I was trying to locally setup the Fn Project to develop some functions to deploy to Oracle Cloud but my setup (Ubuntu 22.04 LTS with deamonless and rootless Podman) doesn't seem to work correctly.
My
${HOME}/.fn/config.yaml
looks like this:Several executions produced distinct errors:
It seems the root-cause is a system-call to the
docker
command which, in turn, is a shell script that just callspodman
with the same arguments it receives. I hacked it a bit to see which arguments were being passed and got the following:Some of the problems I don't know how to workaround but when using Podman is there any way to change the socket "volume" to be
/run/user/${UID}/podman/podman.sock:/var/run/docker.sock
?Another thing regarding the Podman setup is that it assumes
/etc/containers/registries.conf
contains at least:Otherwise it fails to pull the OCI.
Edit: I tried to launch the server manually by fixing some arguments just to see if there was any chance to make it work with Podman and got this result: