Unable to bringup etcd:v3.5.13 docker container. #19580
-
Bug report criteria
What happened?Hello Team, We are trying to update etcd container version from v3.4.13 to v3.5.13. (We also upgraded k3s to newer version i.e, v1.30.4+k3s- (). with v3.4.13 we are able to bring etcd docker container without any issues. But we are facing some problems with v3.5.13 version. So upon investigating seems some changes are happened in v3.5.13 version base image. --> docker run --rm -it -v /root/script.sh:/root/script.sh --entrypoint /bin/sh quay.io/coreos/etcd:v3.4.13 Logs: -->k3s --version Hardware types are same for both versions. -->docker inspect quay.io/coreos/etcd:v3.5.13 | grep -i Archit. We are trying to bringup the new etcd instance using the following command: What did you expect to happen?I should be able to open interactive session with version v3.5.13 like as shown below for v3.4.13 How can we reproduce it (as minimally and precisely as possible)?docker pull quay.io/coreos/etcd:v3.5.13 Anything else we need to know?No response Etcd version (please run commands below)$ etcd --version
# paste output here
$ etcdctl version
# paste output here Etcd configuration (command line flags or environment variables)paste your configuration hereEtcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)$ etcdctl member list -w table
# paste output here
$ etcdctl --endpoints=<member list> endpoint status -w table
# paste output here Relevant log output |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Mattavamsi, starting v3.5 our container images are based on a distroless image. Therefore, they don't come installed with shell interpreters such as sh or bash. If you need to apply customization using your init shell script, I suggest building your own image. i.e.,: FROM quay.io/coreos/etcd:v3.5.19 as etcd
FROM debian:<some tag>
RUN mkdir -p /var/etcd/ /var/lib/etcd/
COPY --from=etcd /usr/local/bin/etcd /usr/local/bin/
COPY --from=etcd /usr/local/bin/etcdctl /usr/local/bin/
COPY --from=etcd /usr/local/bin/etcdutl /usr/local/bin/
... |
Beta Was this translation helpful? Give feedback.
Hi @Mattavamsi, starting v3.5 our container images are based on a distroless image. Therefore, they don't come installed with shell interpreters such as sh or bash.
If you need to apply customization using your init shell script, I suggest building your own image. i.e.,: