Lewis's Tech Keep

[Linux] 리눅스 컨테이너 본문

Linux

[Linux] 리눅스 컨테이너

Lewis Seo 2021. 10. 29. 19:33

왜 찾게 되었는지


- 계기

 리눅스 컨테이너를 좀 정리 해야겠다고 생각하게 된 계기는 도커를 공부하면서 알고 싶어졌다.

 처음 도커를 어떻게든 알려고 모 A회사의 인터넷 강의를 결제했는데 강의 자체는 나쁘지 않았지만, 너무 A-to-Z 따라하기만 있어서 답답했다. 왜 써야하는 지 컨테이너, 이미지, 실행 시 어떤 점을 주의해야 하는 지 등등 디테일이 없었다.

 이에 눈물을 머금고 다른 B회사 강의를 커리큘럼, 블로그까지 다 체크하고 결제했는데 원리와 같은 것이 나오면서 도커가 리눅스 컨테이너 기술이라는 것을 알게되었다. 그래서 하는 김에 한번 정리도 해보고 한다.
(꼭 강의 살 때 커리큘럼 체크 잘 하시길 ㅠㅠ)

 

리눅스 컨테이너란?


 - 개념

 

리눅스 컨테이너란 시스템에서 나머지 부분으로부터 격리된 1개 또는 여러 프로세스들의 집합이다.

컨테이너 실행 시 실행에 필요한 모든 파일이 고유의 이미지(=컨테이너 이미지)에서 제공된다.

컨테이너 방식과는 다른 가상화(virtualization)hypervisor를 통해 os를 만들고위에 필요한 앱들을 올리기 때문에 컨테이너 방식만큼 경량화될 수 없다.

이 프로세스 격리를 통해 작동하는 컨테이너 방식은 이러한 경량화, 그리고 os를 여러 개 만들지 않기 때문에 모든 컨테이너에서 os를 공유하고 있어 서비스, 어플리케이션을 계속 가볍게 유지할 수 있다.

 

리눅스 컨테이너란

A Linux® container is a set of 1 or more processes that are isolated from the rest of the system.

참고[https://www.redhat.com/en/topics/containers/whats-a-linux-container]

리눅스 컨테이너란 시스템에서 나머지 부분으로부터 격리된 1개 또는 여러 프로세스들의 집합이다.

 

컨테이너 이미지란

A container image is a static file with executable code that can create a container on a computing system. A container image is immutable

참고[https://www.aquasec.com/cloud-native-academy/container-security/container-images/]

컨테이너 이미지란 시스템에서 컨테이너를 만드는 실행가능한 코드들이 들어있는 파일(컨테이너 실행에 필요한 파일과 설정값 등을 포함)이고 이미지는 불변값(immutable)입니다.

 

가상화 vs 컨테이너


- 가상화 & 컨테이너 차이

 

 

- 참고 링크

 

 리눅스 컨테이너

https://www.redhat.com/ko/topics/containers/whats-a-linux-container

 

리눅스 컨테이너(Linux Container): 개념, 종류, 장점, 설치

리눅스 컨테이너(Linux Container)란 시스템에서 격리된 프로세스로, 필요한 파일을 제공하는 이미지에서 실행됩니다. 개념, 이점, 기술, 종류, 설치를 쉽게 설명합니다.

www.redhat.com

https://medium.com/extales/%EB%A6%AC%EB%88%85%EC%8A%A4-%EC%BB%A8%ED%85%8C%EC%9D%B4%EB%84%88-linux-containers-lxc-%EC%97%90-%EB%8C%80%ED%95%B4%EC%84%9C-%EC%95%8C%EC%95%84%EB%B3%B4%EC%9E%90-132dde6331f8

 

리눅스 컨테이너(Linux Containers, LXC)에 대해서 알아보자

2014년, Docker가 발표되고 Google이 Docker를 채택해 개발자들의 주목을 끌었습니다. 2019년 현재, 이제 Docker의 존재에 대해서 모르는 사람들이 거의 없을 정도로 보편적인 기술이 되었습니다.

medium.com

https://linuxcontainers.org/

 

Linux Containers

LXC LXC is a well-known Linux container runtime that consists of tools, templates, and library and language bindings. It's pretty low level, very flexible and covers just about every containment feature supported by the upstream kernel. LXC provides the ba

linuxcontainers.org

 

 컨테이너 이미지

https://www.aquasec.com/cloud-native-academy/container-security/container-images/

 

Container Images: Architecture and Best Practices - Aqua

Learn how container images are structured, the difference between containers & images, parent & base images, & the role of Docker manifest

www.aquasec.com

 

 도커 관련

https://subicura.com/2017/01/19/docker-guide-for-beginners-1.html

 

초보를 위한 도커 안내서 - 도커란 무엇인가?

도커를 처음 접하는 시스템 관리자나 서버 개발자를 대상으로 도커 전반에 대해 얕고 넓은 지식을 담고 있습니다. 도커가 등장한 배경과 도커의 역사, 그리고 도커의 핵심 개념인 컨테이너와 이

subicura.com

 

https://searchitoperations.techtarget.com/definition/Docker-image

 

What is a Docker Image? Introduction and use cases

Learn about Docker images: What they're used for, their anatomy, how they compare to Docker containers, how to create them, the commands involved and more.

searchitoperations.techtarget.com

 

Comments