How to update easily. #230
Replies: 4 comments
-
Hi @Passerby1011,
By doing so, your Docker containers will restart automatically when the Docker daemon starts, and they will not be removed by any Docker commands that stop or restart containers. I hope this helps! Please let me know if you need help with anything else. -- |
Beta Was this translation helpful? Give feedback.
-
I didn't understand what you meant. You gave me a docker-compose.yml file, but every update has files that are updated, such as these. |
Beta Was this translation helpful? Give feedback.
-
我使用的是 |
Beta Was this translation helpful? Give feedback.
-
@Passerby1011 im not sure if you’ve gotten a good answer but here are the steps that should prevent you from deleting the dir. Goto your project directory with terminal (you can also open the directory in vs code then open terminal from there), then make sure you are on the right branch with ‘git branch’. Switch to main if not ‘git checkout main’ If you’ve made changes to the files (other than data which won’t affect git), you should use git stash or commit them in another branch. I can explain this more if you’re editing code. Now use ‘git pull origin main’ and it should pull the latest changes and you shouldn’t have issue if you had no changes to the code files |
Beta Was this translation helpful? Give feedback.
-
I am a beginner and I am using docker-compose. I would like to ask how to update this project simply. Currently, I am keeping the .env file and deleting the entire project folder, as well as previous docker containers and images, and then recreating them. However, this will cause data loss and is very troublesome.
Beta Was this translation helpful? Give feedback.
All reactions