I'm developing an app where we pop containers with volumes and custom network.
I need to add the feature where admin will be able to upgrade the running container to latest version. So I was hoping to be able to fetch the various information from it the pop a new container with the old config.
Question
However I'm not sure what I really need to grab on the old container and how to use it. For instance,
- Is
NetworkSettings.Networks
enough or is there network information elsewhere in the data ? How do I mount a volume with the infos in
Mounts
?{ "Type": "volume", "Name": "841d6a1709b365763c85fb4b7400c87f264d468eb1691a660fe81761da6e374f", "Source": "/var/lib/docker/volumes/841d6a1709b365763c85fb4b7400c87f264d468eb1691a660fe81761da6e374f/_data", "Destination": "/home/mast/.ssh", "Driver": "local", "Mode": "", "RW": True, "Propagation": "" }