Is there a quick/easy way to re-create a running container with all its options intact? I have a container (running remotely in Digital Ocean) that was started from a
compose up command on my laptop. There are numerous option used such as volumes, ports, etc… Now I have a new image for my container and I simply want to re-create it. However I do not want to use compose as I want to be able to do this fully remotely from the server. It is also not as simple as a
docker rm and
docker run as I don’t have all the options/arguments that compose used to create the server.
Is there some kind of quick/easy way to re-create a container on an updated image and keep all its options/config? Basically do what compose does, on an environment were compose doesn’t exist.