I have this entrypoint in a Dockerfile:
ENTRYPOINT ["r2g", "run"]
and I run the resulting image with:
docker run --name "$container" "$tag"
most of the time, I want the container to exit when it's done - the r2g process is not a server, but a testing command line tool. So my question is - if I want to conditionally keep the container from exiting, is there a flag I can pass to docker run
to keep the container alive? Can I add something to ENTRYPOINT to keep the container alive?