'Podman - how do I state container port and host port?

My first day with Podman. I am trying

sudo podman run -it solrX

I get Solr running fine but I cannot reach Solr default port on localhost:8983. I google more and try

sudo podman run -it solrX -p 8983:8983

to use 8983 both as container port and host port but it doesn't work. How do I do this? Any idea?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source