I have a NAS where I tested to see if some apps could run on it without a server. They overloaded the CPU, so I am now wanting to move them over to a more powerful workstation. I’m used to Compose files/configs, but it seems that my NAS uses plain Docker. Is there a way to extract the configs/long terminal setup commands? I have Portainer installed, if that makes it easier.
Give this a try: https://github.com/Red5d/docker-autocompose
I think I tried this or some other tool a while back, but it wasn’t very good
Goddamn, that is a cool tool. Better than the way I suggested.
From memory I ended doing something more like what you did anyway. Or just manually converted the container.
‘docker container inspect <container ID>’
Or https://github.com/lavie/runlike:
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock assaflavie/runlike YOUR-CONTAINER
and copy the output into Composerize.