Home ghcr
Post
Cancel

ghcr

ghcr(Github Container Registry)

๐Ÿ“Œ ์ •์˜

Github Container Registry(ghcr)๋Š” ๊นƒํ—ˆ๋ธŒ์—์„œ ์ œ๊ณตํ•˜๋Š” ์ปจํ…Œ์ด๋„ˆ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ์„œ๋น„์Šค์ด๋‹ค.

๋„์ปคํ—ˆ๋ธŒ์™€ ๊ฐ™์€ ๋ ˆ์ง€์ŠคํŠธ๋ฆฌ ์„œ๋น„์Šค์ด๋‹ค.

1๏ธโƒฃ ์ฒซ ๋ฒˆ์งธ๋กœ

Github Personal Access Token์„ ์ƒ์„ฑํ•œ๋‹ค.

Token์—๋Š” repo, write:package, delete:package ์ „์ฒด ๊ถŒํ•œ์ด ํ•„์š”ํ•˜๋‹ค.

https://github.com/settings/tokens

2๏ธโƒฃ ๋‘ ๋ฒˆ์งธ๋กœ

ํŒŒ์ผ์— ํ•ด๋‹น ํ† ํฐ์„ ์ €์žฅํ•˜๊ณ ,

cat {FILE_NAME} | docker login ghcr.io -u leeseojune53 --password-stdin

๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด Login Succeeded๊ฐ€ ์ถœ๋ ฅ๋  ๊ฒƒ์ด๋‹ค.

๋งŒ์•ฝ ์ €์žฅํ•˜๊ธฐ ์–ด๋ ค์šด ์ƒํ™ฉ์ด๋ผ๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ์‚ฌ์šฉํ•ด๋„ ๋œ๋‹ค.

docker login ghcrcr.io -u {GITHUB_USERNAME} --password {ACCESS_TOKEN}

3๏ธโƒฃ ์„ธ ๋ฒˆ์งธ๋กœ

DockerHub๋ฅผ ์‚ฌ์šฉํ•˜๋“ฏ์ด docker push ๋ฐ pull๋ฐ›์•„์„œ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค.

pushํ•œ ์ด๋ฏธ์ง€๋Š” ๊นƒํ—ˆ๋ธŒ ํ”„๋กœํ•„ํŽ˜์ด์ง€์—์„œ packages๋ฅผ ๋ณด๋ฉด ๋œ๋‹ค.

This post is licensed under CC BY 4.0 by the author.

FileBeat์—์„œ ๋กœ๊ทธํŒŒ์ผ ์ ‘๊ทผํ•  ๋•Œ permission denied

ManyToOne ์กฐํšŒ ์‹œ undefined