-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker image fails during initdb #260
Comments
I believe my issues are related to this: moby/moby#42680 In other words, it seems that I must update to docker >= 20.10.10 to use the new image. The alternative workaround is to run the image with the |
Can confirm that the image works for me after upgrading docker. |
Thanks for your tip @alf , haven't found any solution on the internet except yours. Would never have thought to check the Docker version.... |
tried on docker 20.10.17 and docker 20.10.21 and same issue with and its not kernel limits on the host..
and edit: |
I'm running this in jelastic though, and have a funny feeling it could be outdated versions.
|
Upgrading fixed it for me too. |
Forgot to update. |
When I try to start the docker image it fails almost immediately:
Since I haven't set any resource limits and I'm running this on my laptop with a lot of available memory, I suspect the error message is misleading. I dig some further digging by starting a container and enter it:
From this shell we can reproduce the original error:
I'm no expert, but as I understand it the
ulimit
command tells us of any resource constraints:When I run
strace initdb
I find the following lines quite interesting. As far as I can tell,initdb
tries to execute thepostgres
command in a subprocess but fails:Here's the entire output, in case my snippet doesn't include the necessary details: strace_initdb.txt.
This is all on my laptop:
Any idea how to proceed? The old alpine-images works great for me, but since they're going away I gather it's best if we can get this up and running.
The text was updated successfully, but these errors were encountered: