I tried to check the local port before creating the container and found that port 5433 was already in use.
C:\Windows\System32>netstat -aon | findstr LISTENING
TCP [::]:5433 [::]:0 LISTENING 6017
I checked the information and found that postgrep.exe had occupied port 5433.
C:\Windows\System32>tasklist /FI "PID eq 6012"
Choose a non-used port to create a container and the connection will be successful