Can't deploy a stack on Synology DSM

Hi,

I have deployed Portainer on Synology DSM and I can manage my container correctly but impossible for me to deploy a new stack.

This error is showing:

Deployment error
Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused “process_linux.go:430: container init caused “process_linux.go:396: setting cgroup config for procHooks process caused \“failed to write 0 to memory.swappiness: write /sys/fs/cgroup/memory/docker/218204415accffd3a31eab9e8073c82fa6afec9720518eac1ba4caa366944f4c/memory.swappiness: invalid argument\”””: unknown"

The container seems to be created but not launched. It’s an issue with the running of the container.
I’ve tried to launch Portainer with docker compose or docker run, same issue.

Thanks for your help

Its a bug with Libcompose (the library we use to deploy docker compose) on standalone and effects synology.
Workaround is to include mem_swappiness: -1 in your stack. See this issue for discussion and syntax

1 Like