Docker Container access #16806
-
Hello, the command I used to run was
and it ran successfully, but after that I was trying something like so I was wondering if I doing something wrong or I missed something ,, or maybe the container doesn't have bash or sh I don't know |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @monicamillad - Thanks for your question. To minimise attack surface the standard etcd images are based on distroless and do not contain a shell, refer: Line 2 in 245b58a If you need to interact with etcd you can # Check etcd endpoint status
docker exec <name> etcdctl endpoint status -w table |
Beta Was this translation helpful? Give feedback.
Hey @monicamillad - Thanks for your question.
To minimise attack surface the standard etcd images are based on distroless and do not contain a shell, refer:
etcd/Dockerfile
Line 2 in 245b58a
If you need to interact with etcd you can
docker exec
to run theetcdctl
utility available inside the container. For example: