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.

7 points

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

permalink
report
reply
4 points

Goddamn, that is a cool tool. Better than the way I suggested.

permalink
report
parent
reply
2 points

From memory I ended doing something more like what you did anyway. Or just manually converted the container.

permalink
report
parent
reply
5 points
*

‘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.

permalink
report
reply

Community stats

  • 1

    Monthly active users

  • 61

    Posts

  • 158

    Comments