I’m sure someone has written a script to convert docker run commands to compose files.
I am usually customizing variables and tend to use compose for anything I am planning on running in “production”. I’ll use run if it’s a temporary or on-demand use container.
It’s not really that much effort to write a compose file with the variables from a run command, but you do have to keep an eye on formatting.
Was it ever safe?