how to i transfer the postgresql container to another server

How to i transfer the postgresql container to another server ?

i try to docker export and import command but didn’t work maybe i did wrong