-
[Docker] Docker Flow 이해하기CI-CD/Docker 2022. 4. 24. 16:59반응형
Docker에서는 Container단위로 가상화를 app을 실행하게 되는데 Container의 구성요소를 잘 알아야 한다. Container관련 내용은 이 영상을 보면 바로 이해 가능 하다
Container 3대 구성요소
- Container
- Image
- Docker File
- Container는 하나 이상의 image로 구성되어 있다.
- Image는 Docker Hun에서 가져와 사용도 가능하고, Docker File로 Custom하여 생성, 관리, 사용이 가능하다
- Container는 독립적인 공간으로 구성되기 때문에 local에서 Container로 접근이 가능하지만, Container끼리는 접근이 불가능하다.
Docker Flow
- Local 에서 작업 하여 Image생성
- 해당 Image Docker Hub에 Push하여 올림
- Server 환경에서 Pull 받아 Image를 사용한다.
- Docker Hub - Git Hub와 동일한 방식인데 Repository같은 작업 공간들을 Hub에 올려 놓고 공유하거나 관리가 가능하게 만들어 놓은 공간이다. Github 처럼 web상으로 관리된다. 아래 link를 타고 들어가 확인해보자.
Docker Hub Container Image Library | App Containerization
We and third parties use cookies or similar technologies ("Cookies") as described below to collect and process personal data, such as your IP address or browser information. You can learn more about how this site uses Cookies by reading our privacy policy
hub.docker.com
- Container Registry는 Git hub의 repository라고 생각하면 된다.
반응형'CI-CD > Docker' 카테고리의 다른 글