Is usage of the same docker container at several stages possible in Gitlab CI?

HI there. I just figured out that I cannot create stage with build, another one for testing and last to push docker image because every stage using different container and there is no builded container in test stage(at least for kubernetes runner).

So my question is: how can I do that?