summaryrefslogtreecommitdiffstats
path: root/docker/centos-8
diff options
context:
space:
mode:
authorWesley Coakley <wcoakley@nvidia.com>2021-04-15 02:48:59 +0200
committerWesley Coakley <wcoakley@nvidia.com>2021-04-16 19:05:44 +0200
commit3a33be132996f8477986a2dbbc8839cbbd27ab2a (patch)
tree8f7b7c8eb4d5942a0d9d7fd851efc3983e584a79 /docker/centos-8
parentMerge pull request #8465 from opensourcerouting/vtysh-scan-snafu (diff)
downloadfrr-3a33be132996f8477986a2dbbc8839cbbd27ab2a.tar.xz
frr-3a33be132996f8477986a2dbbc8839cbbd27ab2a.zip
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-8')
-rw-r--r--docker/centos-8/Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/centos-8/Dockerfile b/docker/centos-8/Dockerfile
index 7ed794892..104501aab 100644
--- a/docker/centos-8/Dockerfile
+++ b/docker/centos-8/Dockerfile
@@ -41,4 +41,4 @@ COPY --from=centos-8-builder /rpmbuild/RPMS/ /pkgs/rpm/
RUN yum install -y /pkgs/rpm/*/*.rpm \
&& rm -rf /pkgs
COPY docker/centos-8/docker-start /usr/lib/frr/docker-start
-ENTRYPOINT [ "/usr/lib/frr/docker-start" ]
+CMD [ "/usr/lib/frr/docker-start" ]