๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
728x90
๋ฐ˜์‘ํ˜•

docker4

04 Docker ์ปจํ…Œ์ด๋„ˆ ๊ด€๋ฆฌ โ€ป ์ด ๊ธ€์€ '๋„์ปค ๊ต๊ณผ์„œ' ์ฑ…๊ณผ ๊ต์œก์„ ํ†ตํ•ด ๋“ค์€ ๋‚ด์šฉ, ๊ณต์‹ ๋ฌธ์„œ๋ฅผ ํ† ๋Œ€๋กœ ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค.์ปจํ…Œ์ด๋„ˆ ์‹คํ–‰ํ•˜๊ธฐdocker container run [OPTIONS] IMAGE [COMMAND] [ARG...]docker rundocker run ๋ช…๋ น์–ด๋Š” ์ปจํ…Œ์ด๋„ˆ ์‹œ์ž‘ ์‹œ ํ•„์š”ํ•˜๋‹ค๋ฉด ์ด๋ฏธ์ง€๋ฅผ pullํ•˜๊ณ  ๋ช…๋ น์–ด๋ฅผ ์ˆ˜ํ–‰ํ•œ๋‹ค.์ฃผ์š” ์˜ต์…˜OptionDescription--name์ปจํ…Œ์ด๋„ˆ์˜ ์ด๋ฆ„์„ ์ง€์ •.-d, --detach์ปจํ…Œ์ด๋„ˆ๋ฅผ ๋ฐฑ๊ทธ๋ผ์šด๋“œ์—์„œ ์‹คํ–‰.-e, --envํ™˜๊ฒฝ ๋ณ€์ˆ˜ ์„ค์ •.--env-fileํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ์ €์žฅํ•œ ํŒŒ์ผ๋กœ ์„ค์ •.--exposeํฌํŠธ ๋˜๋Š” ํฌํŠธ ๋ฒ”์œ„๋ฅผ ๋…ธ์ถœ.-p, --publishํ˜ธ์ŠคํŠธ์—๊ฒŒ ์ปจํ…Œ์ด๋„ˆ ํฌํŠธ๋ฅผ ๊ณต๊ฐœ.--rm์ปจํ…Œ์ด๋„ˆ๊ฐ€ ์ข…๋ฃŒ๋˜๋ฉด ์ž๋™์œผ๋กœ ์‚ญ์ œ.-i, --interactiveSTDIN์„ ํ™œ.. 2024. 10. 22.
03 Docker ์ด๋ฏธ์ง€ ๊ด€๋ฆฌ โ€ป '์‹œ์ž‘ํ•˜์„ธ์š”! ๋„์ปค/์ฟ ๋ฒ„๋„คํ‹ฐ์Šค' ์ฑ…๊ณผ ๊ต์œก์„ ํ†ตํ•ด ๋“ค์€ ๋‚ด์šฉ, ๊ณต์‹ ๋ฌธ์„œ๋ฅผ ํ† ๋Œ€๋กœ ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค.  01 Docker ์„ค์น˜ํ•˜๊ธฐโ€ป์ด ๊ธ€์€ ์œˆ๋„์šฐ ํ™˜๊ฒฝ์— ๋งž์ถฐ ์ž‘์„ฑํ–ˆ์Šต๋‹ˆ๋‹ค.Docker ์„ค์น˜Windows Docker Desktop: The #1 Containerization Tool for Developers | DockerDocker Desktop is collaborative containerization software for developers. Get started and download Dockerlucy-devblog.tistory.com์ด์ „ ๊ฒŒ์‹œ๋ฌผ์„ ์ฐธ๊ณ ํ•˜์—ฌ ๋จผ์ € Docker๋ฅผ ์„ค์น˜ํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.Docker ์„ค์น˜๊ฐ€ ๋๋‚ฌ์œผ๋ฉด ์ด์ œ๋ถ€ํ„ฐ ๋„์ปค์—์„œ ์‚ฌ์šฉํ•˜๋Š” ๋ช…๋ น์–ด๋“ค์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.์˜ค๋Š˜์€ ์ด๋ฏธ์ง€.. 2024. 9. 28.
02 Docker๋ž€? โ€ป '์‹œ์ž‘ํ•˜์„ธ์š”! ๋„์ปค/์ฟ ๋ฒ„๋„คํ‹ฐ์Šค' ์ฑ…๊ณผ ๊ต์œก์„ ํ†ตํ•ด ๋“ค์€ ๋‚ด์šฉ, ๊ณต์‹ ๋ฌธ์„œ๋ฅผ ํ† ๋Œ€๋กœ ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค.  What is Docker?Get an in-depth overview of the Docker platform including what it can be used for, the architecture it employs, and its underlying technology.docs.docker.com๋„์ปค ๋ช…๋ น์–ด๋ฅผ ๊ณต๋ถ€ํ•˜๊ธฐ ์ „ ์šฐ์„  ์ปจํ…Œ์ด๋„ˆ์™€ ๋„์ปค์— ๋Œ€ํ•ด ๋จผ์ € ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.์ปจํ…Œ์ด๋„ˆ๋ž€ ๋ฌด์—‡์ผ๊นŒ์š”?์ปจํ…Œ์ด๋„ˆ๋Š” ๋‹จ์ผ OS ์ปค๋„์—์„œ ๋‹ค๋ฅธ ํ”„๋กœ์„ธ์Šค์— ์˜ํ–ฅ์„ ๋ฐ›์ง€ ์•Š๊ณ  ๋…๋ฆฝ์ ์œผ๋กœ ์‹คํ–‰๋˜๋Š” ํ”„๋กœ์„ธ์Šค ์ƒํƒœ๋ฅผ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค. ์ด๋ ‡๊ฒŒ ๊ตฌํ˜„๋œ ์ปจํ…Œ์ด๋„ˆ๋Š” ๊ฐ€์ƒํ™” ์ƒํƒœ์—์„œ ๋™์ž‘ํ•˜๋Š” ํ”„๋กœ์„ธ์Šค๋ณด๋‹ค ๊ฐ€๋ณ๊ณ  ๋น ๋ฅด๊ฒŒ ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋ ‡.. 2024. 9. 28.
01 Docker ์„ค์น˜ํ•˜๊ธฐ โ€ป์ด ๊ธ€์€ ์œˆ๋„์šฐ ํ™˜๊ฒฝ์— ๋งž์ถฐ ์ž‘์„ฑํ–ˆ์Šต๋‹ˆ๋‹ค.Docker ์„ค์น˜Windows Docker Desktop: The #1 Containerization Tool for Developers | DockerDocker Desktop is collaborative containerization software for developers. Get started and download Docker Desktop today on Mac, Windows, or Linux.www.docker.com๊ณต๋ถ€ํ•˜๋ฉด์„œ ๋ˆˆ์œผ๋กœ ์ง์ ‘ ๋ณด๊ธฐ ํŽธํ•˜๊ฒŒ ์šด์˜์ฒด์ œ์— ๋งž๋Š” Docker Desktop์„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.LinuxWindowํ™˜๊ฒฝ์—์„œ Linux๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด cmd์—์„œ ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.wsl --install์ดํ›„ ์„ค์ •์€ ์ฐจ๋ก€๋Œ€๋กœ ๋”ฐ.. 2024. 9. 28.
728x90
๋ฐ˜์‘ํ˜•