Running xterm terminal on docker container on ubuntu 18.04

I am new to docker and I have docker containers running on Ubuntu 18.04 os. Is it possible for me to run the xterm terminal on a docker container and proceed to set IP addresses and do simple tests using commands like iperf