Skip to content

Can I persist docker container? #7097

Answered by matifali
am009 asked this question in Q&A
Apr 12, 2023 · 3 comments · 7 replies
Discussion options

You must be logged in to vote

You cannot persist a container on workspace stop. Even if you somehow prevent terraform from destroying it it will be recreated/replaced on the next workspace restart.
For persistence you should mount volumes to the directories you need.

Replies: 3 comments 7 replies

Comment options

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

@matifali
Comment options

@am009
Comment options

Comment options

You must be logged in to vote
4 replies
@matifali
Comment options

@am009
Comment options

@matifali
Comment options

@am009
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by matifali
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