Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ALL] 특정 포트의 사용 여부 확인하기 #3

Open
hooniegit opened this issue Jul 20, 2023 · 1 comment
Open

[ALL] 특정 포트의 사용 여부 확인하기 #3

hooniegit opened this issue Jul 20, 2023 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@hooniegit
Copy link
Contributor

hooniegit commented Jul 20, 2023

안녕하세요, 팀 한울의 김도훈(@hooniegit)입니다.

🧑‍🏭 개요

도커 컨테이너를 로컬 환경 또는 실제 온프레미스에서 compose up 할 경우 사용할 포트가 비어 있어야 컨테이너가 실행됩니다. 따라서, 사전에 해당 포트가 이미 할당되어 있는지의 여부를 확인하는 과정이 필요한데, 그 내용을 아래에 서술합니다.

@hooniegit hooniegit self-assigned this Jul 27, 2023
@hooniegit hooniegit added documentation Improvements or additions to documentation DEVELOPMENT SHARE and removed SHARE labels Jul 27, 2023
@hooniegit
Copy link
Contributor Author

hooniegit commented Aug 27, 2023

🔍 포트 확인 명령어

# 예시 : 5000번 포트의 할당 여부 확인하기
$ sudo lsof -i :5000

🗑️ 포트 비우기 명령어

# pid 번호를 확인하고 해당 task를 kill하기
$ sudo kill 629

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant