Can't access the shell inside of a container. #2243
-
Environment
Description of issueI need to override the default entrypoint of the postgrest container while deploying to K8s. So something like: However, it doesn't work. I tried to create a dummy container on my computer with the below Dockerfile:
I've tried using the /bin/sh and /bin/bash pointers, but in both cases, I got an error saying that /bin/*sh wasn't found. I wonder if there is any shell present in the PostgREST image. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
No, there is no shell in our docker image. We create a minimal docker image with only the For some architectures, we don't provide minimal docker images, yet, so those do have a base system including shell installed. However that's nothing we support, but just a side-effect because we can't built the static executable on those architectures, yet. I assume you'll need to create a config file or something in those steps before executing postgrest. I suggest you do that in an |
Beta Was this translation helpful? Give feedback.
No, there is no shell in our docker image. We create a minimal docker image with only the
postgrest
executable. You can find details about this here: https://github.com/PostgREST/postgrest/blob/main/nix/tools/docker/README.mdFor some architectures, we don't provide minimal docker images, yet, so those do have a base system including shell installed. However that's nothing we support, but just a side-effect because we can't built the static executable on those architectures, yet.
I assume you'll need to create a config file or something in those steps before executing postgrest. I suggest you do that in an
initContainer
running something likebusybox
or so. You can then mount a volume to …