fn icon indicating copy to clipboard operation
fn copied to clipboard

memory limit parameter for newer docker versions

Open egandro opened this issue 11 months ago • 2 comments

  • Link to issue this resolves

This error when running a very recent version of docker with fn's default image.

Error invoking function. status: 500 message: internal server error

Log from the fnproject/fnserver

API error (400): You should always set the Memory limit when using Memoryswap limit, see usage
  • What I did

Added a required config option to api/agent/drivers/docker/cookie.go - configureMem

This project needs some love. Until that happens, you can mitigate this by doing the following steps:

git clone https://github.com/egandro/fn.git
# or use https://github.com/fnproject/fn.git add apply the patch from here to cookie.go
cd fn
docker rmi fnproject/fnserver:latest || true
docker build -t fnproject/fnserver:latest .
fn start

egandro avatar Feb 02 '25 14:02 egandro

您好,您的邮件已收到,谢谢。——熊宇飞

yufeifly avatar Feb 02 '25 14:02 yufeifly

Thank you! Its a must need to run OCI Serverless Functions locally.

lbovolini avatar Jun 05 '25 19:06 lbovolini

Fixed here https://github.com/fnproject/fn/pull/1619

ahjones avatar Sep 26 '25 10:09 ahjones