에러내용
Error invoking remote method 'docker-start-container': Error: (HTTP code 500) server error - Ports are not available: listen tcp 0.0.0.0:50079: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
필자의 경우에는 50079였는데, 어느 포트에서 저 에러가 났을때, 아래 를 수행한다면 해결될것으로 본다.
※ 진리의 재부팅은 한번 해보고 안되면 아래를 수행하자.
솔루션
1. 어느 포트들이 Block 되어 있는지 확인
netsh interface ipv4 show excludedportrange protocol=tcp
2. 포트가 범위 중 하나에 있는 경우 winnat를 중지합니다.
net stop winnat
3. 필요한 포트 동적 예약 금지합니다(예: 50079):
netsh int ipv4 add excludedportrange protocol=tcp startport=50079 numberofports=1
4. winnat 다시 시작:
net start winnat
'Infrastructure > Docker' 카테고리의 다른 글
1. Docker 사용기 (0) | 2022.01.22 |
---|---|
0. 도커? 뭔데 쓰는걸까? (0) | 2022.01.22 |
Dockerfile에 sudo 쓰는법 (0) | 2022.01.21 |