title: Docker backup container with startup parameters
body: <p>Im facing the same problem since months now and i dont have an adequate solution. </p>
  
  <p>Im running several Containers based on different images. Some of them were started using portainer with some arguments and volumes. Some of them were started using the CLI and docker start with some arguments and parameters. </p>
  
  <p>Now all these settings are stored somewhere. Because if i stop and retart such a container, everything works well again. but, if i do a commit, backup it with tar and load it on a different system and do a docker start, it has lost all of its settings. </p>
  
  <p>The procedure as described here: <a href="https://linuxconfig.org/docker-container-backup-and-recovery" rel="nofollow noreferrer">https://linuxconfig.org/docker-container-backup-and-recovery</a> does not work in my case. </p>
  
  <p>Now im thinking about to write an own web application which will create me some docker compose files based on my setting rather than to just do a docker start with the correct params. This web application should also take care of the volumes (just folders) and do a incremental backup of them with borg to a remote server. </p>
  
  <p>But actually this is only an idea. Is there a way to "extract" a docker compose file of a running containter? So that i can redeploy a container 1:1 to an other server and just have to run docker run mycontainer and it will have the same settings?</p>
  
  <p>Or do i have to write my web app? Or have i missed some page on google and there is already such a solution?</p>
  
  <p>Thank you!</p>