Hi@akhtar,
To expose you container from outside you have to use NATing or sometimes it is also called PATing concept. It means you have use ip_forwarding concept. To do that use the below given command.
$ docker run -it -p 1234:80 --name web1 centos:latest
Hope this will help you.
Thank You