Check docker run in Gitlab CICD pipeline

We are using Gitlab CICD to build Docker images of our Node server.
I am wondering if there is a way to test that docker run of the image can be tested? We’ve had few occasions where the Docker builds but it is missing some files/env variables and it fails to start the server.
Is there anyway we can run the docker image and test it is starting up correctly in the CICD pipeline?

Cheers.

Source: StackOverflow