EC2_DOCKER_FLAGS options available

I’m using LocalStack Pro and trying to configure a mount that each of my EC2 Instances will use (/sys/fs/cgroup). I’m adding --volume /sys/fs/cgroup:/sys/fs/cgroup to EC2_DOCKER_FLAGS but it doesn’t appear to be picked up. Actually, the container doesn’t start when I include anything other than --privileged in my EC2_DOCKER_FLAGS var.

What options are supported in EC2_DOCKER_FLAGS? The docs suggest --volume but it doesn’t seem to be the case.

EDIT: This is on LocalStack 3.0.0, RHEL 9.2, and Docker 24.0.7

I found that removing the quotes from where I was defining EC2_DOCKER_FLAGS resolved the issue:

So, in my docker compose, this WORKS:

      - EC2_DOCKER_FLAGS=--privileged -v /sys/fs/cgroup:/sys/fs/cgroup

But this breaks container startup because the quotes get included when parsing args:

      - EC2_DOCKER_FLAGS="--privileged -v /sys/fs/cgroup:/sys/fs/cgroup"