1、创建容器是指定
docker run -p <host_port1>:<container_port1> -p <host_port2>:<container_port2>
2、修改dockerfile expose所需要的端口,这样可以免去-p参数。
1、创建容器是指定
docker run -p <host_port1>:<container_port1> -p <host_port2>:<container_port2>
2、修改dockerfile expose所需要的端口,这样可以免去-p参数。
docker EXPOSE 多个端口 docker开放多个端口
数组去重,你第一想到的方法是啥?这样:?// 定义一个数组const arr = [1,2,3,4,4,5,7,7,6]// 定义一个对象存储已经遍历过的值let obj = {}// 定义保存去重后的数组let newArr = []// 循环遍历数组for(let i = 0; i < arr.length; i++) {// 判断是否已经遍历过这个相同的值// 是没有遍历过的值的话
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M