I was having trouble starting a docker automatically when I started the server, so I used “–restart always”.
It solved my problem because it starts the container automatically, but I noticed that unlike before, when I used CTRL + D or exit, that it did not save anything I did … right now leaving the wrong way it saves everything!
My question is: should --restart always, really should save everything? was not it just to restart the docker when it was closed?
And what are the possible problems I will have using this command?