From ad1b5811117f37a660a8f7028bec5e13cdb61416 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Tue, 28 Feb 2017 13:36:59 -0800 Subject: [PATCH] [docker]: Add -c option in teamd docker Dockerfile (#348) CMD is not longer a file name but a command that needs to be executed, thus /bin/bash is not enough for the entrypoint and -c is needed. Signed-off-by: Shuotian Cheng --- dockers/docker-teamd/Dockerfile.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockers/docker-teamd/Dockerfile.j2 b/dockers/docker-teamd/Dockerfile.j2 index e1e41c33ba..32e302971e 100644 --- a/dockers/docker-teamd/Dockerfile.j2 +++ b/dockers/docker-teamd/Dockerfile.j2 @@ -22,5 +22,5 @@ ENV DEBIAN_FRONTEND=noninteractive RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y RUN rm -rf /debs -ENTRYPOINT ["/bin/bash"] +ENTRYPOINT ["/bin/bash", "-c"] CMD ["/usr/bin/config.sh && /usr/bin/start.sh"]