giacomo@lemmy.worldtoSelfhosted@lemmy.world•Anyone using "docker run" instead of "docker compose"?English
11·
1 year agoGreat… For chatgpt…
Great… For chatgpt…
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.
Nice! Yeah, literally minutes, haha. I knew someone had to have already done this.