렴소네 블로그

Docker 옵션과 명령어 본문

Docker

Docker 옵션과 명령어

렴소 2016. 12. 22. 12:46
옵션  
  • --config=~/.docker              Location of client config files
    사용자 설정파일의 경로
  • -D, --debug                     Enable debug mode
    디버그 모드 활성화
  • -H, --host=[]                   Daemon socket(s) to connect to
    데몬모드로 실행시 소켓경로 설정
  • -h, --help                      Print usage
    도움말
  • -l, --log-level=info            Set the logging level
    log 수준 설정
  • --tls                           Use TLS; implied by --tlsverify
    tls 사용
  • --tlscacert=~/.docker/ca.pem    Trust certs signed only by this CA
    CA 인증서 경로
  • --tlscert=~/.docker/cert.pem    Path to TLS certificate file
    인즈서 파일경로
  • --tlskey=~/.docker/key.pem      Path to TLS key file
    키 파일 경로
  • --tlsverify                     Use TLS and verify the remote
    tls 원격 인증사용
  • -v, --version                   Print version information and quit
    버전정보 출력

명령어

  • attach    Attach to a running container
    실행중인 컨테이너에 표준 입력과 표준 출력을 연경
  • build     Build an image from a Dockerfile
    Dockerfile로 이미지 빌드
  • commit    Create a new image from a container's changes
    컨테이너의 변경사항을 새로운 이미지로 생성
  • cp        Copy files/folders between a container and the local filesystem
    파일이나 폴더를 호스트와 컨테이너 사이에 복사
  • create    Create a new container
    이미지에서 새로운 컨테이너를 생성
  • diff      Inspect changes on a container's filesystem
    컨테이너에서 변경된 파일을 확인
  • events    Get real time events from the server
    Docker 서버에서 일어난 이벤트를 실시간으로 출력
  • exec      Run a command in a running container
    실행중인 컨테이너에서 명령 실행
  • export    Export a container's filesystem as a tar archive
    컨테이너의 파일시스템은 tar 파일로 저장
  • history   Show the history of an image
    이미지의 히스토리를 출력
  • images    List images
    이미지 리스트를 출력
  • import    Import the contents from a tarball to create a filesystem image
    tar 파일로 압축된 파일시스템에서 이미지 생성
  • info      Display system-wide information
    현재 시스템정보와 도커 컨테이너 이미지정보등을 출력
  • inspect   Return low-level information on a container, image or task
    컨테이너나 이미지 task(?)의 세부정보를 json으로 출력
  • kill      Kill one or more running containers
    실행중인 컨테이너를 종료
  • load      Load an image from a tar archive or STDIN
    tar파일로 이미지를 생성
  • login     Log in to a Docker registry.
    Docker 레지스트리에 로그인
  • logout    Log out from a Docker registry.
    Docker 레지스트리에서 로그아웃
  • logs      Fetch the logs of a container
    컨테이너의 로그를 출력
  • network   Manage Docker networks
    Docker 의 네트워크 구성 설정
  • node      Manage Docker Swarm nodes
    Docker 의 Node 관리
  • pause     Pause all processes within one or more containers
    컨테이너를 일시정지
  • port      List port mappings or a specific mapping for the container
    컨테이너의 포트가 어떻게 연결되어있는지 확인
  • ps        List containers
    컨테이너의 리스트를 확인
  • pull      Pull an image or a repository from a registry
    Docker 레지스트리에서 이미지를 받아옴
  • push      Push an image or a repository to a registry
    Docker 레지스트리로 이미지를 전송
  • rename    Rename a container
    컨테이너의 이름을 변경
  • restart   Restart a container
    컨테이너를 재시작
  • rm        Remove one or more containers
    컨테이너를 제거
  • rmi       Remove one or more images
    이미지를 제거
  • run       Run a command in a new container
    이미지에서 새로운 컨테이너를 시작
  • save      Save one or more images to a tar archive (streamed to STDOUT by default)
    이미지를 tar 파일로 저장
  • search    Search the Docker Hub for image
    Docker Hub에서 이미지를 검색
  • service   Manage Docker services
    Docker service 관리
  • start     Start one or more stopped containers
    컨테이너를 시작
  • stats     Display a live stream of container(s) resource usage statistics
    컨테이너가 사용중인 자원을 실시간으로 확인
  • stop      Stop one or more running containers
    컨테이너 정지
  • swarm     Manage Docker Swarm
    Docker Swarm 관리
  • tag       Tag an image into a repository
    저장소에 있는 이미지에 tag를 설정
  • top       Display the running processes of a container
    컨테이너에 실행중인 프로세스들을 출력
  • unpause   Unpause all processes within one or more containers
    일시 정지된 컨테이너를 재시작
  • update    Update configuration of one or more containers
    컨테이너 업데이트
  • version   Show the Docker version information
    Docker 의 버전 출력
  • volume    Manage Docker volumes
    Docker Volume 관리
  • wait      Block until a container stops, then print its exit code
    컨테이너가 정지될때까지 기다린후 exite code를 출력


'Docker' 카테고리의 다른 글

Docker 활용을 위해 추가적으로 공부할 것들  (0) 2016.12.27
Docker 환경 변수  (0) 2016.12.22
Docker란  (0) 2016.12.21
docker file 작성법  (0) 2016.12.19