I am new to docker and containers. I followed the below steps to migrate my postgres database running on a docker container:
docker save -o <path for generated tar file> <image name>
scp root@192.10.1.5:/images/gpdb.tar root@192.10.2.5:/images
In the destination server (192.10.2.5):
docker load -i /images/gpdb.tar
But, when I login to the docker image, the database is not there. How do I save the docker image with all database tables and data.