gammazeta
CCoder.com
•Created by gammazeta on 1/19/2024 in #help
Docker Template. Start/stop workspace without delete docker container
ok , i will research more about terraform
18 replies
CCoder.com
•Created by gammazeta on 1/19/2024 in #help
Docker Template. Start/stop workspace without delete docker container
Compare two method
delete container and recreate : good for clean and storage but slow to start, hard to keep state, take more ram when start/stop
stop container and restart: eassy keep state, fast start, take less ram when start/stop but take more storage to keep
But i think get more storage is eassy than, i just need buy more disk . Ram and time of user is important than
18 replies
CCoder.com
•Created by gammazeta on 1/19/2024 in #help
Docker Template. Start/stop workspace without delete docker container
Thank you @bamhm182 (BytePen) i have try what you say.
But some point for keep container live without delete @Phorcys
- i want workspace like personal computer and personal computer shouldn't reset anything each time restart
- keep state and package have install in start script and when start it will reinstall again . but it hard to do that
- mount folder home/user to volume docker some software have save data and config outside that will be loss
- mount all container to volumes will keep everything but it not good optimize like only stop and restart container without delete and recreate (some script run when recreate workspace in template will conflict with old data)
So all my opinion like workspace is home computer for normal user use and eassy to use
18 replies