Skip to content

Latest commit

ย 

History

History
31 lines (26 loc) ยท 1.13 KB

Docker_install.md

File metadata and controls

31 lines (26 loc) ยท 1.13 KB

Docker ์„ค์น˜

centos7์— docker, docker-compose ์„ค์น˜๐Ÿ”ฅ

CentOS7 Docker ์„ค์น˜

  • Docker ์ €์žฅ์†Œ ์„ค์น˜
  • Docker ์„œ๋น„์Šค ์‹œ์ž‘
    • sudo systemctl start docker
  • Docker ์„œ๋น„์Šค ์ƒํƒœ ํ™•์ธ
    • sudo systemctl enable docker
  • root ๊ณ„์ •์ด ์•„๋‹Œ ํŠน์ • ๊ณ„์ •(username)์—์„œ docker ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•œ ์„ค์ •
    • sudo usermod -aG docker <username>
    • ๋ช…๋ น์–ด ์ž…๋ ฅ ํ›„(์„ค์ • ํ›„) ๊ณ„์ • ์žฌ์ ‘์† ํ•„์š”โ—โ—
  • Docker ๋ฒ„์ „ ํ™•์ธ
    • docker --version
  • Docker ๋™์ž‘ ์ฒดํฌ : hello-world ์ปจํ…Œ์ด๋„ˆ ์‹คํ–‰ ํ™•์ธ
    • docker run hello-world

CentOS7 Docker Compose ์„ค์น˜

  • docker๋„ ์„ค์น˜ํ•ด์•ผ ํ•จ

  • Docker-Compose ์„ค์น˜

  • Docker-Compose ์‹คํ–‰ ๊ถŒํ•œ ๋ถ€์—ฌ

    • `sudo chmod -x /usr/local/bin/docker-compose
  • Docker-Compose ๋ฒ„์ „ ํ™•์ธ

    • docker-compose --version