Skip to content

[packer+ansible] docker-compose로 만든 서비스가 EC2 instance에서 확인이 안 되는 이유 #58

Answered by posquit0
goldrako asked this question in Q&A
Discussion options

You must be logged in to vote

안녕하세요,
EC2 인스턴스 상에서 서비스가 동작하는것을 확인하고 해당 인스턴스를 AMI로 만들었으나, 해당 AMI로 다시 EC2 인스턴스를 만들었을 때 동작중이지 않은 상태에 대해 궁금하신게 맞을까요?


EC2 인스턴스에 SSH 접속을 하셔서 df 명령어를 수행해보시면 파일시스템 볼륨 정보를 확인할 수 있습니다.

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        3.8G     0  3.8G   0% /dev
tmpfs           3.8G     0  3.8G   0% /dev/shm
tmpfs           3.8G  412K  3.8G   1% /run
tmpfs           3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/nvme0n1p1   30G  3.6G   27G  12% /
tmpfs           769M     0  769M   0% /run/user/1000

위와 같이 모든 디렉토리가 EBS /dev/nvme0n1p1에 마운트된 것이 아님을 확인할 수 있습니다. AWS 의 AMI는 결국 EBS를 스냅샷 뜨는 것과 동일한 원리인데요. EBS 내용만 복제해오는 것이기 때문에 모든 것이 동일하게 복제된다고 장담할 수 없습니다.

서버 상에 필요한 소프트웨어를 설치 및 설정하는 과정을 다음과…

Replies: 2 comments 1 reply

Comment options

posquit0
Mar 28, 2022
Maintainer Sponsor

You must be logged in to vote
1 reply
@goldrako
Comment options

Answer selected by posquit0
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants