사용자 도구

사이트 도구


docker

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
docker [2019/07/10 10:34]
kwon37xi [Container 관리]
docker [2019/07/24 15:40]
kwon37xi
줄 6: 줄 6:
   * [[https://github.com/wsargent/docker-cheat-sheet|Docker Cheat Sheet]]   * [[https://github.com/wsargent/docker-cheat-sheet|Docker Cheat Sheet]]
   * [[docker:install_ubuntu|Docker Install on Ubuntu Linux]]   * [[docker:install_ubuntu|Docker Install on Ubuntu Linux]]
 +  * [[docker:install_redhat|Docker Install on Redhat/CentOS/Amazon Linux]]
 +  * [[docker:install_arch|Docker install on Arch/Manjaro]]
  
 ===== Usage ===== ===== Usage =====
 +==== 설치 후 테스트 ====
 +<code sh>
 +docker run hello-world
 +</code>
 +
 ==== Docker Hub Search ==== ==== Docker Hub Search ====
 <code sh> <code sh>
줄 17: 줄 24:
   * ''docker images'' : 이미지 목록보기   * ''docker images'' : 이미지 목록보기
   * ''docker rmi [image-name]:[tag]'' : 이미지 삭제. ''tag'' 생략시 버전 상관없이 모두 삭제.   * ''docker rmi [image-name]:[tag]'' : 이미지 삭제. ''tag'' 생략시 버전 상관없이 모두 삭제.
 +
 +
 ==== Container 관리 ==== ==== Container 관리 ====
   * ''run'' 명령으로 컨테이너 생성<code sh>   * ''run'' 명령으로 컨테이너 생성<code sh>
줄 68: 줄 77:
   * ''docker inspect [container-name]'' 으로 마운팅 상황 확인 가능   * ''docker inspect [container-name]'' 으로 마운팅 상황 확인 가능
   * Host 디렉토리를 마운트하려면 ''-v /host/dir:/container/dir''로 host 디렉토리를 container의 특정 디렉토리에 마운팅   * Host 디렉토리를 마운트하려면 ''-v /host/dir:/container/dir''로 host 디렉토리를 container의 특정 디렉토리에 마운팅
-  * [[[[https://stackoverflow.com/questions/41485217/mount-current-directory-as-a-volume-in-docker-on-windows-10|현재 디렉토리 마운팅 script]]<code sh>+  * [[https://stackoverflow.com/questions/41485217/mount-current-directory-as-a-volume-in-docker-on-windows-10|현재 디렉토리 마운팅 script]]<code sh>
 #The following two options will work on both PowerShell and Linux: #The following two options will work on both PowerShell and Linux:
  
docker.txt · 마지막으로 수정됨: 2024/02/15 09:58 저자 kwon37xi