Tn5250 inside docker container

i’m doing a project where my test code runs of tn5250, Now what i wanted is to run it on a docker container.does anyone have a better approach. For web related executions we mention capabilities with local host and ports as below.

DesiredCapabilities dc = DesiredCapabilities.chrome();
dc.setPlatform(Platform.LINUX);
dc.setVersion("");
driver = new RemoteWebDriver(new URL(“http://” + “200.10.12.243” + “:4444/wd/hub”), dc);

but when it comes to tn5250 how we need to figure these values ?