summaryrefslogtreecommitdiff
path: root/docker/centos-7
diff options
context:
space:
mode:
authorWesley Coakley <wcoakley@nvidia.com>2021-04-14 20:48:59 -0400
committerWesley Coakley <wcoakley@nvidia.com>2021-04-16 13:05:44 -0400
commit3a33be132996f8477986a2dbbc8839cbbd27ab2a (patch)
tree8f7b7c8eb4d5942a0d9d7fd851efc3983e584a79 /docker/centos-7
parent861ea6f2682f0ed1f3f4ea4fbb70bdb09a2ca536 (diff)
docker: prefer CMD to ENTRYPOINT
Specifying watchfrr as CMD instead of ENTRYPOINT allows one to easily override this command when starting a docker container. This allows simple, manual testing via (e.g.) bash. With ENTRYPOINT only the container will simply explode with an exit code if watchfrr exits. For instance one could start a shell session in this container via: ``` docker run --name test --rm -i -t <frr-container> bash ``` The default behavior (`docker run <frr-container>` with no command specified) is not changed. Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
Diffstat (limited to 'docker/centos-7')
-rw-r--r--docker/centos-7/Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/centos-7/Dockerfile b/docker/centos-7/Dockerfile
index a92326fcf3..d2ec9f974b 100644
--- a/docker/centos-7/Dockerfile
+++ b/docker/centos-7/Dockerfile
@@ -40,4 +40,4 @@ COPY --from=centos-7-builder /rpmbuild/RPMS/ /pkgs/rpm/
RUN yum install -y /pkgs/rpm/*/*.rpm \
&& rm -rf /pkgs
COPY docker/centos-7/docker-start /usr/lib/frr/docker-start
-ENTRYPOINT [ "/usr/lib/frr/docker-start" ]
+CMD [ "/usr/lib/frr/docker-start" ]