haiwen / seafile-admin-docs

https://haiwen.github.io/seafile-admin-docs/
Other
34 stars 44 forks source link

memcached entrypoint in docker-compose.yml #317

Open akostadinov opened 2 weeks ago

akostadinov commented 2 weeks ago

Hello, the memcached image doesn't start with this entrypoint for me. It fails with

executable file `memcached -m 256` not found in $PATH: No such file or directory

Inspecting the image shows

$ podman inspect docker.io/library/memcached:1.6.18
...
               "Entrypoint": [
                    "docker-entrypoint.sh"
               ],
               "Cmd": [
                    "memcached"
               ]
...

When I set memcached -m 256 as command (not entrypoint), then things properly work. And it seems more correct to run the container with the original entrypoint as it may involve a custom init or who knows what.

While I'm using podman, there might be some difference (although I doubt it). I can't test it with stock docker-compose.

https://github.com/haiwen/seafile-admin-docs/blame/3d7db2f981021b7446a0384915797161e3de824e/manual/docker/docker-compose/ce/11.0/docker-compose.yml#L17