Giter Club home page Giter Club logo

docker-pro-wanted's Introduction

Docker : 나만의 도커 이미지 만들기 부터, 클라우드 배포까지!

4월 원티드 프리 온보딩 챌린지 - docker 뽀개기

I. 사전 미션하는 법

  1. 해당 repository를 clone 하세요:
git clone [email protected]:drum-grammer/docker-pro-wanted.git
  1. 별도의 브랜치를 생성하세요:
git checkout -b my-branch-xx
  1. 아래 사전 미션 내용을 보고 답안을 마크다운 형식으로 작성하시고, ./mission/{nickName} 디렉토리 저장해주세요.

  2. 해당 브랜치를 푸쉬해주세요.

git push -u origin my-branch-xx
  1. Pull Request를 생성하여, 사전 미션을 제출해주세요.

II. 사전 미션

  1. 컨테이너 기술이란 무엇입니까? (100자 이내로 요약)

  2. 도커란 무엇입니까? (100자 이내로 요약)

  3. 도커 파일, 도커 이미지, 도커 컨테이너의 개념은 무엇이고, 서로 어떤 관계입니까?

  4. [실전 미션] 도커 설치하기 (참조: 도커 공식 설치 페이지)

  • 아래 도커 설치부터 실행 튜토리얼을 참조하여 도커를 설치하고, 도커 컨테이너를 실행한 화면을 캡쳐해서 Pull Request에 올리세요.

III. 도커 설치부터 실행 튜토리얼

도커 설치

1. 도커 공식 웹사이트에서 "Get Started"를 클릭합니다.

2. OS에 맞는 설치 파일을 다운로드 받습니다.

  • MacOS의 경우 "Download for Mac"을 클릭합니다.
  • Window 일 경우 "Download for Windows"를 클릭합니다.
  • 다운로드한 설치 파일을 실행합니다.

도커 컨테이너 실행 시키기

1. 나의 사전 미션 폴더를 만들고 해당 폴더로 이동합니다.

cd path/to/docker-pro-wanted/mission
mkdir my-name
cd my-name

2. "Hello, World!"를 출력하는 도커 파일을 만듭니다.

vim Dockerfile

i를 눌러 편집모드로 전환 후 아래 내용을 작성합니다:

FROM alpine:latest
CMD ["echo", "Hello, World"]

ESC를 눌러 명령모드로 전환 후, :wq 입력, enter키를 눌러 Dockerfile을 생성합니다.

3. 도커 파일로 도커 이미지를 빌드합니다.

docker build -t hello-world .

(위 명령어의 의미는 "현재 디렉토리에서 Dockerfile을 읽어 도커 이미지를 만들고, 해당 이미지에 hello-world라는 tag 를 붙혀라" 입니다.)

4. 빌드한 도커 이미지를 실행합니다.

docker run hello-world

이 명령어는 hello-world라는 이름의 도커 이미지를 실행시켜 "Hello, World!"를 출력합니다.

docker-pro-wanted's People

Contributors

17wook2 avatar baekgol avatar bangjaeyoung avatar behappyleee avatar drum-grammer avatar geonwoo0215 avatar gilyeon00 avatar gimhae-person avatar haeyeon0106 avatar heosangmu avatar heum-ji avatar jamiehun avatar jayhanjaelee avatar joosungkwon avatar ka-ms avatar kaispread avatar kkangh00n avatar lane4-asher avatar leebee725 avatar namgwanwook avatar oheadnah avatar pde0111 avatar rimi0108 avatar rlarltj avatar seunggulee1007 avatar somang-lim avatar tmdduq500 avatar wonyoungseo avatar youngjijang avatar zeen263 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.