Docker Registry ๋
- Docker Registry ๋ ๋ชจ๋ Docker Image ๊ฐ ์ ์ฅ๋๋ Central Repository
image: {Registry}/{Repository}/{Image}
๋ช
๋ช
๊ท์น์ ๋ฐ๋ฆ
{Repository}
๋ฅผ ๋ช
์ํ์ง ์์ผ๋ฉด {Image}
์ด๋ฆ๊ณผ ๋์ผํ๋ค๊ณ ํ๋จ
{Repository}
๋ ์ฃผ๋ก Docker Hub ์ Account Name ๋๋ Organization Name
- Image ๋ฅผ pull ํด์ฌ ์์น๋ฅผ ์ง์ ํ์ง ์์ ๊ฒฝ์ฐ ๊ธฐ๋ณธ Registry ์ธ Docker Hub ์ ์๋ค๊ณ ํ๋จ
- ์ฆ,
image: nginx
์ผ ๊ฒฝ์ฐ ์ค์ ๋ก image: docker.io/nginx/nginx
Private Registry
- ๋ด๋ถ์ ์ผ๋ก ๊ฐ๋ฐํ Application ์ Private ์ผ๋ก ์ฌ์ฉํ๊ณ ์ถ์ ๊ฒฝ์ฐ Private Registry ๋ฅผ ์ฌ์ฉ
- AWS, Azure, GCP ์ ๊ฐ์ Cloud Provider ๋ ๊ธฐ๋ณธ์ ์ผ๋ก Private Registry ๋ฅผ ์ ๊ณต
- ์ด๋ฐ Private Registry ๋ค์ Credential ์ ์ด์ฉํด์ผ๋ง ์ ๊ทผํ ์ ์๋๋ก ๋ง๋ค์ด์ผ ํจ
- ๊ทธ ํ
docker login private-registry.io
์ ๊ฐ์ ๋ช
๋ น์ด๋ก ๋ก๊ทธ์ธํด์ ์ฌ์ฉ ๊ฐ๋ฅ
References