Skip to content

Instantly share code, notes, and snippets.

@unk
Created March 25, 2018 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unk/a054d538da57755938e40d61a0e8e363 to your computer and use it in GitHub Desktop.
Save unk/a054d538da57755938e40d61a0e8e363 to your computer and use it in GitHub Desktop.
# docker [OPTION] image-name
docker run -i -t --name ubuntu-container ubuntu
# -i: 인터렉티브 interactive 옵션. 표준 입력 STDIN 을 유지하며 호스트와 통신을 유지합니다.
# -t: pseudo-tty 옵션. 호스트에서 터미널을 이용해 컨테이너와 통신하려면 필수적인 옵션입니다.
# --name: 컨테이너 이름. 이번의 경우엔 ubuntu-container
# ubuntu 도커 이미지 이름. 이번의 경우엔 ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment