[Infra] Jenkins ์ปจํ…Œ์ด๋„ˆ ์•ˆ Docker ์„ค์น˜ํ•˜๊ธฐ(Docker In Docker)
ยท
Infra
๐Ÿ’ป ๋ฌธ์ œJenkins๋ฅผ Docker๋กœ ์„ค์น˜๋ฅผ ํ•ด์„œ ๋‚ด๋ถ€์—์„œ Docker ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰์‹œํ‚ค๊ณ  ์‹ถ์—ˆ๋‹ค. (Docker In Docker)ํ•˜์ง€๋งŒ Cannot connect to the Docker daemon ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.    ์ฒ˜์Œ์— ์ด๋ ‡๊ฒŒ Jenkins๋ฅผ ์„ค์น˜ํ–ˆ๋‹ค๊ฐ€ ๋ฌด์ˆ˜ํ•œ ์‚ฝ์งˆ์„ ํ•˜๊ฒŒ ๋˜์—ˆ๋‹ค.sudo docker run -d --name jenkins -p 8080:8080 jenkins/jenkins:jdk11 ์ •๋ฆฌํ•˜์ž๋ฉด ์ด๋Ÿฐ ๋ฌธ์ œ๊ฐ€ ์ƒ๊ฒผ๋‹ค.1. Jenkins๋ฅผ ์‹คํ–‰ํ–ˆ์„ ๋•Œ, ๋‚ด๋ถ€์— ๋„์ปค๊ฐ€ ์„ค์น˜๋˜์–ด ์žˆ์ง€ ์•Š์•„์„œ Docker ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•  ์ˆ˜ ์—†์—ˆ๋‹ค.2. ๊ทธ๋ž˜์„œ Jenkins ์•ˆ์— Docker๋ฅผ ์„ค์น˜ํ•˜๋ ค๊ณ  ํ–ˆ๋”๋‹ˆ root๋กœ ์ ‘์†ํ•˜๋ผ๊ณ  ํ•œ๋‹ค.3. ๊ทธ๋ž˜์„œ root๋กœ ์ ‘์†ํ•ด์„œ ์„ค์น˜ํ•˜๋ ค๊ณ  ํ–ˆ๋”๋‹ˆ cl..
giraffe_
'aws' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก