Skip to content

What happens to certificates on container's restart? And can we copy and paste certs? #813

Answered by buchdag
amankapoor asked this question in Q&A
Discussion options

You must be logged in to vote

What happens to the certificates when I restart, stop-then-start, remove-then-start etc a container (volume not deleted). Do the previous certs are discovered first and used if available, which I most probably think is happening behind the scenes. Or, new cert is created every time?

If the volume is not deleted the certificates will stay there and if the same volume is re-used again the existing certificates will be re-used by the container. To ensure volume reutilisation you should use host or named volumes rather than anonymous volumes. Anonymous volumes are tied to a specific container, so if the container get removed this volume won't get automatically reused (it can but its name wi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by buchdag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #274 on May 16, 2021 17:41.