mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Dockerfile: use 'ENTRYPOINT' instead of 'CMD'
use entrypoint, so people can specify flags to etcd without providing the binary. Signed-off-by: Secret <haichuang221@163.com>
This commit is contained in:
parent
7f1940e5ed
commit
37cc3f5262
@ -6,5 +6,5 @@ RUN mkdir -p /var/etcd/
|
||||
|
||||
EXPOSE 2379 2380
|
||||
|
||||
# Define default command.
|
||||
CMD ["/usr/local/bin/etcd"]
|
||||
# Define default entrypoint.
|
||||
ENTRYPOINT ["/usr/local/bin/etcd"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user