How to bake credential into docker image for git?
问题 This is actually a question following from my previous one. I am trying to use docker to host a personal note-taking web service and want to backup data generated by the service (my notes). Currently I plan to use git to commit, pull, and push to a repository for my purpose. To do git pull and push, my docker image needs to host my credentials. What is the easiest yet safe way to achieve this? What I have done so far: I choose Alpine as the base image of the image of my service. Because I