@helmberts answer is great and gives you everything you need, I try to give a tiny salt of salt (and something to dock, not docker).
The fact is that your application lives in a recoverable on-off environment. When deploying ( git push ), you kind of configure acester, every time you run your afterword applications, you create a clone that dies after you stop the container (view).
You can do dokku run myapp ls / to see how it looks. You can make changes ( dokku run myapp touch /mytouched.file ), but they are not saved ( dokku run gives you a fresh clone!) And is "lost" immediately. If you want to have files somewhere forever, use the volume and mount it in the application containers. There is a cool plugin (dokku-volume) for this .
I canβt say how to remove old differences.
Felix source share