Home > other >  For help! Red hat under the 7 port binding problem
For help! Red hat under the 7 port binding problem

Time:10-03

I run into a problem recently, in the red hat 7 system started on a container, the command is:
# docker run ubuntu - d - p 22:1204/usr/sbin/SSHD - d
Port container startup success, but the binding is IPV6, I use the following command to connect to the container has just started, can't find links,
Link command is:
# SSH -p 49153 192.168.100.81 (my native address) this command must be success
With netstat TNPL command to see open the port to get the following information:
# netstat TNPL
Tcp6 0 0: : : 49153: : : * LISTEN/docker 2482
Why is only binding on the ipv6 address? Can bind to ipv4?
I was a novice, hope ace can nudge me, modesty to learn from you!

CodePudding user response:

B: turn off the selinux try again
A: oh? This I didn't pay attention, thank you, I'll try and no longer asked everyone

the answer from the CSDN Docker communication technology group (303806405), by the webmaster xinshubiao finishing, due to the manual editing, the questioner and the respondent QQ number and nickname had no marked one by one, simply use the ABCD instead of asking questions or reply, on behalf of A questioner, here, first thanked the group students participating in the discussion,
  • Related