Docker enable multiple port mapping commands


As follows:

 docker run -d -p 5000:23 -p 5001:22 –name telnet_ssh –privileged=true telnet:centos /usr/sbin/init

Supplement: docker enables multi port opening

As follows:

docker run -it -p20180:80  -p20181:8080 -p20182:8976 –name containerName image:tag

Attached submission

docker commit -a ‘songlk’ -m ‘commitdesc’ container_nginx centos:7.2.1511

The above is my personal experience. I hope I can give you a reference, and I hope you can support developeppaer. If there is any mistake or not fully considered, please don’t hesitate to comment.