giacomo@lemmy.worldtoSelfhosted@lemmy.world•Anyone using "docker run" instead of "docker compose"?English
1·
1 year agoNice! Yeah, literally minutes, haha. I knew someone had to have already done this.
Nice! Yeah, literally minutes, haha. I knew someone had to have already done this.
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.
It looks like an upsidedown Xbox controller with a screen in the middle.