Is there a way to export a Docker container's configuration?

2 years ago by tester1121 to c/docker

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.

CameronDev 7 points 2 years ago path: 0 10545240, hotness: undefined, score: 7, children: 2
ikidd 4 points 2 years ago

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

path: 0 10545240 10545491, hotness: undefined, score: 4, children: 1
CameronDev 2 points 2 years ago

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

path: 0 10545240 10545491 10546006, hotness: undefined, score: 2, children: 0
ikidd 5 points 2 years 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.

path: 0 10545287, hotness: undefined, score: 5, children: 0
docker
docker

@programming.dev

login for more options
1479
100
12

go to feed...