Skip to content

Docker container doesn't work on M1 Mac #4

@ulfjack

Description

@ulfjack

I'm able to run the container on an M1 Mac like this:

docker run --init --rm -p 8080:8080 --platform linux/amd64 ghcr.io/engflow/free:2.8.0

However, I get the following error:

java.lang.IllegalArgumentException: CAS is too small to support 5 executors:
        Disk size       62,671,097,856
- Reserved for OS       12,534,219,572 (20% of disk)
- Max output size       20,000,000,000 (4,000,000,000 Bytes of outputs per executor)
   - Replica size       15,068,439,142
                =       15,068,439,142
     is less than       20,000,000,000 (4,000,000,000 Bytes of inputs per executor)
	at com.engflow.re.cas.CasConfig.determineCasConfig(CasConfig.java:72)
	at com.engflow.re.mini.Main.start(Main.java:272)
	at com.engflow.re.mini.Main.main(Main.java:141)

When I reduce the input/output tree sizes, I can get it to start successfully:

docker run --init --rm -p 8080:8080 --platform linux/amd64 ghcr.io/engflow/free:2.8.0 --max_input_size=2GB --max_output_size=2GB

However, it doesn't reply to HTTP requests:

upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: delayed connect error: 111

I think this is an error from envoy unable to talk to mini. I also tried to talk to mini directly, but I just get empty responses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions