Running build in a container

hello. in one of my steps i am running docker run -it this generates the error below. what do i need to configure in Jenkins so that it will work with the -it?

the input device is not a TTY

Help. Thank you in advance.