Browse Source

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>
Secret 9 years ago
parent
commit
f19cef960e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Dockerfile-release

+ 2 - 2
Dockerfile-release

@@ -6,5 +6,5 @@ RUN mkdir -p /var/etcd/
 
 
 EXPOSE 2379 2380
 EXPOSE 2379 2380
 
 
-# Define default command.
-CMD ["/usr/local/bin/etcd"]
+# Define default entrypoint.
+ENTRYPOINT ["/usr/local/bin/etcd"]