this post was submitted on 10 Jun 2024
15 points (100.0% liked)

Docker

1104 readers
1 users here now

founded 1 year ago
MODERATORS
 

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.

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 7 points 5 months ago (1 children)

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

[–] [email protected] 4 points 5 months ago (1 children)

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

[–] [email protected] 2 points 5 months ago

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

[–] [email protected] 5 points 5 months ago* (last edited 5 months ago)

'docker container inspect '

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.