Is it possible to create a snapshot of the container used by the CI Docker executor and export it as a .tar file?

Hi,

I would like to make a snapshot of the Docker container used by the CI Docker executor and dump it into the GitLab (or some other) Docker registry, if all the CI jobs ran successfully.

Does anyone know how this can be done?

Thanks!