Is it possible to create docker image along with all data?

Hey!

Is it possible to create docker image along with all data? I mean to save everything what is inside container with all data.

In my case i wish to move gitlab from one server to another with all data so i wouldn’t need to move everything what is inside manually.

Cheers!