Giter VIP home page Giter VIP logo

docker-practice's Introduction

Docker 명령어 모음 및 개념 설명

도커 개념

  • 도커란? - 도커는 리눅스 컨테이너에 리눅스 어플리케이션을 프로세스 격리기술을 사용하여 더 쉽게 컨테이너로 실행하고 관리할 수 있게 해주는 오픈소스 프로젝트 입니다.

  • Virtual Machin(가상머신) vs Docker Container(도커 컨테이너)

    • Virtual Machin(VM) - 가상머신은 Hypervisor를 통해 여러개의 운영체제를 생성되고 관리됨. (Guest OS) - 시스템 자원을 가상화하고 독립된 공간을 생성하는 작업은 HyperVisor를 거치므로 -> 성능 손실이 큼 - 가상머신은 Guest OS를 사용하기 위한 라이브러리, 커널 등을 포함하므로 -> 배포할 때 용량이 큼
    • Docker Container - 도커 컨테이너는 가상화된 공간을 생성할 때 리눅스 자체 기능을 사용하여 프로세스 단위의 격리 환경을 만듬 -> 성능 손실이 없음 - 가상머신과 달리 커널을 공유해서 사용하므로, 컨테이너에는 라이브러리 및 실행파일만 있음 -> 용량이 적다 - 컨테이너를 이미지로 만들었을 때, 배포하는 시간 단축 및 사용할 때의 성능 손실이 거의 없는 장점을 가진다.

Docker commands

+ docker ps
- 실행중인 모든 컨테이너의 정보를 나열
+ docker ps -a
- 실행중 이거나 전에 중지 혹은 종료된 컨테이너의 정보를 나열

docker stop [name] - STATE를 Exited로 바꿈 (중지)

docker rm - 컨테이너 삭제

docker images - 도커이미지 정보 가져옴

docker rmi [NAME] - 이미지 삭제

docker pull [NAME] - 이미지만 가져오고 컨테이너 실행은 안하는 명령어

docker

docker-practice's People

Contributors

pilsung-choi avatar

Watchers

 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.