Home > other >  Docker_compose mapping 20-21 _ to port failure docker_run command is normal
Docker_compose mapping 20-21 _ to port failure docker_run command is normal

Time:01-26

 
Version: '2.2'
Services:
Container1:
Restart: always
Image: fauria/VSFTPD
Container_name: VSFTPD
Environment:
- PASV_ADDRESS=192.168.1.8
- PASV_MIN_PORT=21100
- PASV_MAX_PORT=21110
Ports:
20-1020:
21-1021:
- 21100-21110:21100-21110
Volumes,
-./file:/home/VSFTPD


No, 20 and 21 port mapping into a
20-21/TCP, 0.0.0.0:21100-21110 - & gt; 21100-21110/TCP, 0.0.0.0:49156 - & gt; 61220/TCP, 0.0.0.0:49157 - & gt; 61281/TCP
As you can see, more than 20 and 21 port is not successful mapping, the two strange port (61220=1020 * 20 and 60 + 61281=1021 * 60 + 21)
But if you use the
 
Docker run - d - p - p and shall lie - p 21100-21110:21100-21110 - v/Ftpfile:/home/VSFTPD - e PASV_ADDRESS=192.168.1.8 - e PASV_MIN_PORT PASV_MAX_PORT=21110=21100 - e - name VSFTPD - restart=always fauria/VSFTPD

You can run normally,,
Is not only a VSFTPD, I use gitlab, 22 port will appear this situation,
Feel as long as 2 x port mapping will be a problem,,,
  • Related