Docker enables multiple port mapping commands

Docker enables 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 makes multiple ports open

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 it can give you a reference. I also hope that you will support 123WORDPRESS.COM. If there are any mistakes or incomplete considerations, please feel free to correct me.

You may also be interested in:
  • Docker port mapping and external inaccessibility issues
  • How to achieve network access with Docker port mapping
  • Docker volumes file mapping method
  • Docker file storage path, modify port mapping operation mode
  • Docker primary network port mapping configuration
  • How to modify the port mapping of a running Docker container
  • Docker sets up port mapping, but cannot access the solution

<<:  Detailed explanation of the process of realizing calculator function in javascript

>>:  Essential skills for designing web front-end interfaces

Recommend

How to use negative margin technology to achieve average layout in CSS

We usually use float layout to solve the compatib...

Vue uses canvas to realize image compression upload

This article shares the specific code of Vue usin...

How to backup and restore the mysql database if it is too large

Command: mysqlhotcopy This command will lock the ...

How to use nodejs to write a data table entity class generation tool for C#

Although Microsoft provides T4 templates, I find ...

How to design the homepage of Tudou.com

<br />I have been working in front-end for s...

Core skills that web front-end development engineers need to master

The content involved in Web front-end development...

HTML table markup tutorial (10): cell padding attribute CELLPADDING

Cell padding is the distance between the cell con...

Use of Vue3 table component

Table of contents 1. Ant Design Vue 1. Official w...

How to install phabricator using Docker

I am using the Ubuntu 16.04 system here. Installa...

MySQL8.0.18 configuration of multiple masters and one slave

Table of contents 1. Realistic Background 2. Agre...

How to configure Nginx to support ipv6 under Linux system

1. Check whether the existing nginx supports ipv6...

Mysql Chinese sorting rules description

When using MySQL, we often sort and query a field...

The process of installing MySQL 8.0.26 on CentOS7

1. First, download the corresponding database fro...

HTML+CSS to achieve layered pyramid example

This article mainly introduces the example of imp...