Red5d / docker-autocompose

Generate a docker-compose yaml definition from a running container
1.76k stars 197 forks source link

Block of volumes in random order (mountpoints) #65

Closed dallben closed 11 months ago

dallben commented 11 months ago

I regularly run the program and send the output to git, and I get too many version changes only because the order of the volumes appears randomly, I think that just adding .sort() on line 250 would be the solution to my problem leaving it as:

values["volumes"] = mountpoints.sort()

image image
Red5d commented 11 months ago

Added in latest commit

dallben commented 11 months ago

Bravo, genius! You've aced it!