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 MySQL handles implicit default values

Some students said that they encountered the prob...

Detailed explanation of the general steps for SQL statement optimization

Preface This article mainly shares with you the g...

Query the data of the day before the current time interval in MySQL

1. Background In actual projects, we will encount...

Vue component library ElementUI realizes the paging effect of table list

ElementUI implements the table list paging effect...

Solution to the problem of MySQL thread in Opening tables

Problem Description Recently, there was a MySQL5....

Teach you how to quickly install Nginx in CentOS7

Table of contents 1. Overview 2. Download the Ngi...

Mysql 5.7.18 Using MySQL proxies_priv to implement similar user group management

Use MySQL proxies_priv (simulated role) to implem...

Undo log in MySQL

Concept introduction: We know that the redo log i...

Detailed explanation of MySQL backup process using Xtrabackup

Table of contents 01 Background 02 Introduction 0...

Example of asynchronous file upload in html

Copy code The code is as follows: <form action...

The difference and usage between div and span

Table of contents 1. Differences and characterist...

Solution to the problem of repeated triggering of functions in Vue project watch

Table of contents Problem description: Solution 1...

jQuery canvas draws picture verification code example

This article example shares the specific code of ...