How to execute a docker-run command from C++ program?

I want to execute “docker run -it Image_name” from a C++ program. Is there any way to achieve this?

Source: StackOverflow