Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Graceful stop of container is not possible due "workaround" #36

Open
profhccaesar opened this issue Apr 13, 2019 · 0 comments
Open

Graceful stop of container is not possible due "workaround" #36

profhccaesar opened this issue Apr 13, 2019 · 0 comments

Comments

@profhccaesar
Copy link

profhccaesar commented Apr 13, 2019

The last lines of runOracle.sh are:

# TODO workaround
tail -f /dev/null

This "workaround" (work around what) prevents a graceful shutdown of the container because the root process never ends - although the database was already shut down. T. m.,

docker stop -t 200 oracle-xe

takes always 200 seconds, even if the database shutdown only needs 30 seconds or so. After the timeout of 200s the container is killed.

This means that also a shutdown of docker (and therefore the complete workstation) takes at least 200 sec - at least if the timeout was defined by docker run --stop-timeout 200 ...).

Removing the tail-Statement solves that problem. Seems to bring no other problems.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant