ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

CI&CD

Docker - docker open permission denied

realizers 2022. 5. 9. 16:47
728x90
๋ฐ˜์‘ํ˜•

๐Ÿ’ก ์•„๋ž˜์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ๊ฒฝ์šฐ

WARNING: Error loading config file: /var/lib/jenkins/.docker/config.json: open /var/lib/jenkins/.docker/config.json: permission denied

 

 

๐Ÿ’ก config.json ํŒŒ์ผ์„ open ํ•˜๋Š”๋ฐ ์žˆ์–ด์„œ permission denied ๊ฐ€ ๋œ ๊ฒƒ์ด๋ฏ€๋กœ ํ•ด๋‹นํŒŒ์ผ์˜ ๊ถŒํ•œ์„ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

# ์†Œ์œ ๊ทธ๋ฃน ๋ณ€๊ฒฝ
sudo chgrp docker /var/lib/jenkins/.docker/config.json

# ์ฝ๊ธฐ ๊ถŒํ•œ ์ถ”๊ฐ€ (g+w:๊ทธ๋ฃน์“ฐ๊ธฐ, g+x:๊ทธ๋ฃน์‹คํ–‰)
sudo chmod g+r /var/lib/jenkins/.docker/config.json

 

728x90
๋ฐ˜์‘ํ˜•
๊ณต์ง€์‚ฌํ•ญ
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
Total
Today
Yesterday
ยซ   2024/11   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
๊ธ€ ๋ณด๊ด€ํ•จ