summaryrefslogtreecommitdiff
path: root/docker/ubuntu20-ci
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/ubuntu20-ci
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/ubuntu20-ci')
-rw-r--r--docker/ubuntu20-ci/Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/ubuntu20-ci/Dockerfile b/docker/ubuntu20-ci/Dockerfile
index 56657789ee..0b08c2f278 100644
--- a/docker/ubuntu20-ci/Dockerfile
+++ b/docker/ubuntu20-ci/Dockerfile
@@ -71,4 +71,4 @@ RUN cd ~/frr && \
RUN cd ~/frr && make check || true
COPY docker/ubuntu20-ci/docker-start /usr/sbin/docker-start
-ENTRYPOINT ["/usr/sbin/docker-start"]
+CMD ["/usr/sbin/docker-start"]