๐ŸณDocker Toolbox ์„ค์น˜๐Ÿณ

ํ™˜๊ฒฝ ๊ตฌ์ถ• (Windows10 Home)



Windows10 Home์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š” ๋ฐฉํ–ฅ์˜ ํ™˜๊ฒฝ ๊ตฌ์ถ• ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค.

์ด ๊ธฐ์‚ฌ์—์„œ๋Š” Docker๋ฅผ ์„ค์น˜ ํ•œ ํ›„ ์‹œ์ž‘ ํ™•์ธ๊นŒ์ง€ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

MacOS๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š” ๋ถ„, Docker Desktop์„ ์‚ฌ์šฉํ•˜๊ณ  ์‹ถ์€ ๋ถ„์€ ์•„๋ž˜์˜ ๊ธฐ์‚ฌ๋ฅผ ๋ด ์ฃผ์„ธ์š”.
  • ๐Ÿณใ€๊ณง ๊ฐœ๋ฐœ์„ ์‹œ์ž‘ํ•˜๊ณ  ์‹ถ์€ ์‚ฌ๋žŒ์„ ์œ„ํ•œใ€‘Docker๋ฅผ Mac ์„ค์น˜ํ•˜๋Š” ์ˆœ์„œ๐Ÿณ
  • ๐ŸณWindows์—์„œ Docker๋ฅผ ์‹œ์ž‘ํ•˜๋Š” ๋‹จ๊ณ„๐Ÿณ

  • ๊ทธ ๋ฐ–์—๋„ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ํ•™์Šต์— ๋„์›€์ด ๋˜๋Š” ์ •๋ณด๋ฅผ ๋ฐœ์‹ ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค! ๊ณ„์ • ํŒ”๋กœ์šฐ ๊ทธ๋ฆฌ๊ณ  ๊ธฐ๋‹ค๋ ค์ฃผ์„ธ์š”!

    Windows10 Home์—์„œ Docker Toolbox ์„ค์น˜



    ์•„๋ž˜์˜ GitHub์—์„œ Docker Toolbox๋ฅผ ๋‹ค์šด๋กœ๋“œํ•ฉ๋‹ˆ๋‹ค.



    ๊ต์žฌ ์ž‘์„ฑ ์‹œ์ ์˜ ์ตœ์‹  ๋ฒ„์ „์ด 'v19.03.1'์ด๋ฏ€๋กœ 'v19.03.1'์„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

    "DockerToolbox-19.03.1.exe"๋ฅผ ํด๋ฆญํ•˜์—ฌ ๋ชจ๋“  ํด๋”์— ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

    ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜๋ฉด ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.

    ์•„๋ž˜์™€ ๊ฐ™์€ ํ™”๋ฉด์ด ๋‚˜ํƒ€๋‚˜๋ฉด "Next"๋ฅผ ํด๋ฆญํ•˜์‹ญ์‹œ์˜ค.



    ์„ค์น˜ํ•  ํด๋”๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์—์„œ๋Š” ํŠน๋ณ„ํžˆ ๋ณ€๊ฒฝํ•˜์ง€ ์•Š๊ณ  ๋””ํดํŠธ์ธ ์ฑ„๋กœ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. "Next"
    ๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.


    'Git'์„ ์„ค์น˜ํ•œ ์ ์ด ์—†๋Š” ๋ถ„์€ 'Git for Windows'์— ์ฒดํฌ๋ฅผ ํ•ฉ์‹œ๋‹ค. ๊ทธ๋ ‡์ง€ ์•Š์œผ๋ฉด ๊ธฐ๋ณธ ์„ค์ •์œผ๋กœ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค.



    ๋‹ค์Œ ํ™”๋ฉด์—์„œ๋Š” ๋ชจ๋‘ ์ฒดํฌํ•˜๊ณ  "Next"๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.



    ๊ธฐ๋ณธ ์„ค์ •์€ ์ด์ƒ์ž…๋‹ˆ๋‹ค. "install"์„ ํด๋ฆญํ•ฉ์‹œ๋‹ค.



    ๋ฐ์Šคํฌํƒ‘์— ใ€ŒDocker Quickstart Terminalใ€์ด ์ž‘์„ฑ๋˜๊ณ  ์žˆ์œผ๋ฏ€๋กœ, ๋”๋ธ” ํด๋ฆญํ•ด ๊ธฐ๋™ํ•ฉ์‹œ๋‹ค.

    ์ฒ˜์Œ ์‹œ์ž‘ํ•˜๋Š” ๋ฐ ์•ฝ๊ฐ„์˜ ์‹œ๊ฐ„์ด ๊ฑธ๋ฆฝ๋‹ˆ๋‹ค.

    ์•„๋ž˜์™€ ๊ฐ™์€ ํ™”๋ฉด์ด ํ‘œ์‹œ๋˜๋ฉด Docker Toolbox ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋ฉ๋‹ˆ๋‹ค.
                            ##         .
                      ## ## ##        ==
                   ## ## ## ## ##    ===
               /"""""""""""""""""\___/ ===
          ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
               \______ o           __/
                 \    \         __/
                  \____\_______/
    
    docker is configured to use the default machine with IP 192.168.99.100
    For help getting started, check out the docs at https://docs.docker.com
    
    
    Start interactive shell
    

    docker ๋ฐ docker-compose ๋ช…๋ น ํ™•์ธ



    ๋ถ€ํŒ…์ด ์™„๋ฃŒ๋˜๋ฉด docker ๋ช…๋ น๊ณผ docker-compose ๋ช…๋ น์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

    Docker Quickstart Terminal์„ ์—ด๊ณ  ๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.
    $ docker -v
    

    ๋‹ค์Œ๊ณผ ๊ฐ™์ด docker ๋ฒ„์ „์ด ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.
    $ docker -v
    Docker version 19.03.1, build 74b1e89e8a
    

    docker-compose ๋ช…๋ น๋„ ํ™•์ธํ•ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์‹ญ์‹œ์˜ค.
    $ docker-compose -v
    

    docker-compose ๋ฒ„์ „์ด ํ‘œ์‹œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
    $ docker-compose -v
    docker-compose version 1.24.1, build 4667896b
    

    ์ง€๊ธˆ๊นŒ์ง€ docker ์„ค์น˜ ๋ฐ ์‹œ์ž‘ ํ™•์ธ์ด ์™„๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

    Docker Toolbox ์‚ฌ์šฉ ์‹œ ์ฃผ์˜ ์‚ฌํ•ญ



    ๊ต์œก ์ž๋ฃŒ์—์„œ ๋กœ์ปฌ ์„œ๋ฒ„์—์„œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์— ์•ก์„ธ์Šคํ•  ๋•Œ "http://localhost-8080.com/์— ์•ก์„ธ์Šคํ•ฉ๋‹ˆ๋‹ค."๋ผ๋Š” ์„ค๋ช…์ด ์žˆ์ง€๋งŒ Docker Toolbox์—์„œ๋Š” localhost์—์„œ ๋กœ์ปฌ ์„œ๋ฒ„์— ์•ก์„ธ์Šคํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

    ์ง์ ‘ IP๋ฅผ ์ง€์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

    IP ์ฃผ์†Œ๋ฅผ ํ™•์ธํ•˜๋ ค๋ฉด Docker Quickstart Terminal์—์„œ ๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.
    $ docker-machine ls
    

    ์‹คํ–‰ ๊ฒฐ๊ณผ์˜ URL ๋ถ€๋ถ„์— IP ์ฃผ์†Œ๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ 192.168.99.100 ๋Š” ๊ฐ€์ƒ ์‹œ์Šคํ…œ์˜ IP ์ฃผ์†Œ์ž…๋‹ˆ๋‹ค.
    $ docker-machine ls
    NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
    default * virtualbox Running tcp://192.168.99.100:2376 v19.03.12

    ใ€Œ http://localhost-8080.com/ ใ€๋ฅผ ใ€Œ http://192.168.99.100:8080/ ใ€๋กœ ์ฝ์–ด ์กฐ์ž‘์„ ์‹ค์‹œํ•ด ์ฃผ์„ธ์š”.

    ๋ฌธ์ œํ•ด๊ฒฐ



    Docker Quickstart Terminal์„ ์ฒ˜์Œ ์‹œ์ž‘ํ•  ๋•Œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํ™”๋ฉด์ด ๋‚˜ํƒ€๋‚  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    (default) This is a known VirtualBox bug. Let's try to recover anyway...
    Error creating machine: Error in driver during machine creation: Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue
    Looks like something went wrong in step ยดChecking if machine default existsยด... Press any key to continue...
    

    ์ด ์—๋Ÿฌ๋Š” VirtualBox์˜ ๋ฒ„์ „์— ์˜ํ•œ ์—๋Ÿฌ์ด๋ฏ€๋กœ, ํ•œ๋ฒˆ VirtualBox๋ฅผ ์–ธ์ธ์Šคํ†จ ํ•ด, ์ดํ•˜์˜ URL๋กœ๋ถ€ํ„ฐ, ๋‹ค์‹œ VirtualBox๋งŒ ์ธ์Šคํ†จ ํ•ด ์žฌํ•ฉ์‹œ๋‹ค.

    ์ฐธ๊ณ 

    ์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ