Explorar o código

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 %!s(int64=10) %!d(string=hai) anos
pai
achega
f19cef960e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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"]