Error invoking remote method 'docker-start-container'

CHEESE·2022년 7월 13일
0

상황

Error invoking remote method 'docker-start-container': Error: (HTTP code 500) server error - Ports are not available: exposing port TCP 0.0.0.0:3306 -> 0.0.0.0:0: listen tcp 0.0.0.0:3306: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

어느날 갑자기 Docker의 mysql이 실행되지 않았다.

해결

cmd를 관리자 권한으로 실행

포트 번호로 프로세스 검색

netstat -ano | findstr 3306

위 이미지처럼 프로세스가 잡히지 않으면 재부팅 후 정상 동작한다고 한다.

프로세스 kill

taskkill /pid [프로세스아이디] /f

이 때, cmd를 관리자 권한으로 실행하지 않았거나 taskkill 명령에 /f를 붙이지 않으면 프로세스가 정상 종료되지 않는다.

0개의 댓글