Copy container to another host

If I have a container in host A , I would like to copy this container to host B .

May I know how to do it ?

thanks

You could create an image on docker hub and pull it from the other server.

Please check: