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

[20기_남승현] Docker를 이용한 배포 미션 제출합니다. #61

Open
wants to merge 2 commits into
base: sh0311
Choose a base branch
from

Conversation

sh0311
Copy link

@sh0311 sh0311 commented Nov 23, 2024

No description provided.

Copy link

@nimikgnoej nimikgnoej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!
깔끔하게 성공하셨네요 🐳

Comment on lines +2043 to +2047
(그냥 build하면 계속 test에서 오류가 나서 test 빼고 build,,)

```bash
./gradlew clean build -x test
```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

국룰이죠

Docker Compose 이용해 컨테이너를 생성하고 실행한뒤, `sudo docker ps`로 접속했을 때 컨테이너가 생성되었음을 확인했지만
public ip로 접속하려하면 접속이 안되고 `sudo docker ps`로 다시 조회하면 실행중이었던 컨테이너가 사라져있었다..

컨테이너 로그를 살펴보기 위해 `sudo docker logs 컨테이너id` 을 실행

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

추가적으로
sudo docker logs --tail 500 <name>
명령어를 사용하면 로그의 최신 500줄만 확인 할 수 있습니다. 나중에는 로그가 너무 길어져서 다 출력하면 터미널이 버티기 힘들어할 수도 있더라고요

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

Successfully merging this pull request may close these issues.

2 participants