Docker Portability ARM and Cloud


I want to ask if there is a way to develop a test docker container at raspberry pi and then automatically deploy it to a public or private cloud (e.g. azure, aws)?
I am beginner and know that docker container is vm dependant (arm, linux, …) but I did not find an answer if you can automatically migrate and deploy docker to another os plattform or how to migrate to other os.

regards and thanks