Banner

My Tech Blog (๋„์ปค)

๋ฌธ์ œ - Running Docker on Ubuntu 22.04`docker-compose up -d`- Above command fails with this error:dainwiki@DESKTOP-4OPVAQ5:~$ docker-compose up -dERROR: yaml.scanner.ScannerError: mapping values are not allowed here  in "./docker-compose.yaml", line 6, column 31 ์˜ˆ์ƒํ•œ ์›์ธ์•ผ๋ฏˆ ํŒŒ์ผ์€ ๋„์–ด์“ฐ๊ธฐ์— ๋ฏผ๊ฐํ•˜๋ฏ€๋กœ yaml ํŒŒ์ผ 6๋ฒˆ์งธ ์ค„ 31๋ฒˆ์งธ ๋ฌธ์ž์— ๊ตฌ๋ฌธ ์˜ค๋ฅ˜๋Š” ๋„์–ด์“ฐ๊ธฐ๋‚˜ ์ฝœ๋ก  ๋ฌธ์ œ์ผ ๊ฐ€๋Šฅ์„ฑ์ด ํผ.๋‚ด๊ฐ€ ๋ฌธ์ œ ํ•ด๊ฒฐ์„ ์œ„ํ•ด์„œ ํ•œ ์ผ1. yaml validator ๋Œ๋ ค๋ณด๊ธฐํ˜•์‹์ด ์œ ํšจํ•œ yamlํŒŒ์ผ๋กœ ํ™•์ธ๋จ 2. l..
๊ฐœ์ธ์œ„ํ‚ค๋ฅผ ๊ฐœ๋ฐœํ•˜๊ณ  ์žˆ๋‹ค. ๊ทธ๋ƒฅ ๋ณ„ ์ƒ๊ฐ ์—†์ด XAMPP๋กœ ์„ค์ •์„ ํ•˜๊ณ  ์žˆ๋Š”๋ฐ ๋ฐฐํฌํ•˜๋ ค๊ณ  ์ค€๋น„ํ•˜๋˜ ์ค‘์— XAMPP๋Š” ๋กœ์ปฌ์—์„œ๋Š” ์œ ์šฉํ•˜์ง€๋งŒ, ํ˜ธ์ŠคํŒ…์ด๋‚˜ ๋ฐฐํฌ์—๋Š” ์ ํ•ฉํ•˜์ง€ ์•Š๋‹ค๋Š” ๊ฑธ ์•Œ๊ฒŒ ๋˜์—ˆ๋‹ค. ๊ทธ๋ž˜์„œ WSL2๋ฅผ ์„ค์น˜ํ•ด์„œ ๋ฆฌ๋ˆ…์Šค ํ™˜๊ฒฝ์„ ๋งŒ๋“ค์–ด ์ค€ ๋‹ค์Œ์— Docker์„ ์‚ฌ์šฉํ•  ๊ฒƒ์ด๋‹ค. ์œผ์Œ ์†”์งํžˆ ๋„์ปค๊ฐ€ ๋ญ”์ง€ ํ™•์‹คํ•˜๊ฒŒ๋Š” ๋ชจ๋ฅด๊ฒ ๋‹ค ?๊ทผ๋ฐ ์•ˆ์“ฐ๋ฉด ์–ด๋–ป๊ฒŒ ๋˜๋Š”์ง€๋Š” ๊ฐ์ด ์žกํžŒ๋‹ค.... ๋„์ปค๋ฅผ ์“ฐ๋Š” ์ด์œ ์„œ๋กœ ๋‹ค๋ฅธ ์‹œ์Šคํ…œ์—์„œ ์‹คํ–‰ํ•  ๋•Œ ๋ฌธ์ œ๊ฐ€ ์ƒ๊ธฐ๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ๋‚ด๊ฐ€ ๋งŒ๋“  ์›น์‚ฌ์ดํŠธ๊ฐ€ ์ง‘์—์„œ๋Š” ์ž˜ ์ž‘๋™ํ•˜์ง€๋งŒ, ํ•™๊ต ์ปดํ“จํ„ฐ์—์„œ๋Š” ์•ˆ ๋  ์ˆ˜ ์žˆ๋‹ค. ๊ทธ ์ด์œ ๋Š” ๋‘ ์ปดํ“จํ„ฐ์˜ ํ™˜๊ฒฝ์ด ๋‹ค๋ฅด๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค. Docker๋Š” ์ด๋Ÿฐ ํ™˜๊ฒฝ ์ฐจ์ด๋ฅผ ์—†์• ์ค˜์„œ, ์–ด๋””์„œ๋‚˜ ๋˜‘๊ฐ™์ด ์‹คํ–‰๋  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š”๋ฐ ๊ทธ ์žฅ์ ์ด ์žˆ๋‹ค. Docke..
์ธ์ ˆ๋ฏธ์˜€๋˜๊ฒƒ
'๋„์ปค' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก
์ƒ๋‹จ์œผ๋กœ