Here my scenario is moving a running docker container to another machine, I created an image which is Oracle database.
Here the steps I followed:
In Source machine:
- docker commit
- docker save mynewimage > /tmp/mynewimage.tar
Moved the mynewimage.tar to target machine.
In Target Machine;
- docker load < /tmp/mynewimage.tar
- docker run <container ID/imagename>
When I gave run the command I was hoping that it will open as alike the running database in source, but it was trying to create a new one and failed.
I’m I wrong? It’s a feature of docker that we can move a container with running database to another machine right? But it’s not working please assist