Skip to content

Diskspace usage increate after restart #8414

Answered by tawaren
tawaren asked this question in Q&A
Discussion options

You must be logged in to vote

I did two small things to prevent container size growth after a restart (or stop/start)

  1. I adapted the command to clear the /opt/jetty-11.0/temp folder (I did in the docker compose but the dockerfile would be preferable)
    command: bash -c "rm -rf /opt/jetty-11.0/temp/*;exec /app/scripts/entrypoint.sh"
  2. I mapped the logs in addition to the custom folder to the host so i can easily delete (and inspect) them.
    volumes:
    • ./jans-log/auth:/opt/jans/jetty/jans-auth/logs
    • ./jans-log/config-api:/opt/jans/jetty/jans-config-api/logs
    • ./jans-log/scim:/opt/jans/jetty/jans-scim/logs
    • ./jans-fido2-log:/opt/jans/jetty/jans-fido2/log

The second only contributes minimally to the size grows, but having easy ac…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@ossdhaval
Comment options

Comment options

You must be logged in to vote
1 reply
@tawaren
Comment options

Comment options

You must be logged in to vote
3 replies
@tawaren
Comment options

@ossdhaval
Comment options

@moabu
Comment options

Answer selected by tawaren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants