You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errorMsg: "Sorry, you cannot use privileged ports on the host (below 1024) [127.0.0.1:80:80]",
557
+
errorMsg: "Sorry, you cannot use privileged ports on the host (below 1024): 80",
558
558
},
559
559
{
560
560
isTarget: isMicrosoftWSL,
561
561
ports: []string{"127.0.0.1:81:81/tcp"},
562
-
errorMsg: "Sorry, you cannot use privileged ports on the host (below 1024) [127.0.0.1:81:81/tcp]",
562
+
errorMsg: "Sorry, you cannot use privileged ports on the host (below 1024): 81",
563
563
},
564
564
{
565
565
isTarget: isMicrosoftWSL,
566
566
ports: []string{"127.0.0.1:81:81/udp"},
567
-
errorMsg: "Sorry, you cannot use privileged ports on the host (below 1024) [127.0.0.1:81:81/udp]",
567
+
errorMsg: "Sorry, you cannot use privileged ports on the host (below 1024): 81",
568
568
},
569
569
{
570
570
isTarget: isMicrosoftWSL,
571
571
ports: []string{"127.0.0.1:80-83:80-83/tcp"},
572
-
errorMsg: "Sorry, you cannot use privileged ports on the host (below 1024) [127.0.0.1:80-83:80-83/tcp]",
572
+
errorMsg: "Sorry, you cannot use privileged ports on the host (below 1024): 80",
573
573
},
574
574
{
575
575
isTarget: isMicrosoftWSL,
576
576
ports: []string{"127.0.0.1:80-83:80-83/udp"},
577
-
errorMsg: "Sorry, you cannot use privileged ports on the host (below 1024) [127.0.0.1:80-83:80-83/udp]",
577
+
errorMsg: "Sorry, you cannot use privileged ports on the host (below 1024): 80",
578
+
},
579
+
{
580
+
isTarget: true,
581
+
ports: []string{"80"},
582
+
errorMsg: "",
583
+
},
584
+
{
585
+
isTarget: true,
586
+
ports: []string{"80", "65535", "65536"},
587
+
errorMsg: "Sorry, one of the ports provided with --ports flag is outside range: 65536",
588
+
},
589
+
{
590
+
isTarget: true,
591
+
ports: []string{"0", "80", "65535"},
592
+
errorMsg: "Sorry, one of the ports provided with --ports flag is outside range: 0",
593
+
},
594
+
{
595
+
isTarget: true,
596
+
ports: []string{"cats"},
597
+
errorMsg: "Sorry, one of the ports provided with --ports flag is not valid: cats",
598
+
},
599
+
{
600
+
isTarget: true,
601
+
ports: []string{"127.0.0.1:81:0/tcp"},
602
+
errorMsg: "Sorry, one of the ports provided with --ports flag is outside range: 0",
603
+
},
604
+
{
605
+
isTarget: true,
606
+
ports: []string{"127.0.0.1:81:65536/tcp"},
607
+
errorMsg: "Sorry, one of the ports provided with --ports flag is not valid [127.0.0.1:81:65536/tcp] (Invalid containerPort: 65536)",
608
+
},
609
+
{
610
+
isTarget: true,
611
+
ports: []string{"1-65536:80-81/tcp"},
612
+
errorMsg: "Sorry, one of the ports provided with --ports flag is not valid [1-65536:80-81/tcp] (Invalid hostPort: 1-65536)",
613
+
},
614
+
{
615
+
isTarget: true,
616
+
ports: []string{"1-80:0-81/tcp"},
617
+
errorMsg: "Sorry, one of the ports provided with --ports flag is not valid [1-80:0-81/tcp] (Invalid ranges specified for container and host Ports: 0-81 and 1-80)",
618
+
},
619
+
{
620
+
isTarget: true,
621
+
ports: []string{"1-80:1-65536/tcp"},
622
+
errorMsg: "Sorry, one of the ports provided with --ports flag is not valid [1-80:1-65536/tcp] (Invalid containerPort: 1-65536)",
0 commit comments