데브옵스(DevOps)를 위한 쿠버네티스 마스터/왕초보도 따라하는 도커 기초

도커 설치하기

webmaster 2022. 5. 28. 14:19
728x90

1.  VirtualBox DownLoad

https://www.virtualbox.org/wiki/Downloads

 

Downloads – Oracle VM VirtualBox

Download VirtualBox Here you will find links to VirtualBox binaries and its source code. VirtualBox binaries By downloading, you agree to the terms and conditions of the respective license. If you're looking for the latest VirtualBox 6.0 packages, see Virt

www.virtualbox.org

2. 이미지 불러오기(강의 자료)

3. 터미널 열기 + root 로그인

sudo -i #root 로그인

password 입력 #강의에 있음

reboot #재실행 , 바로 실행 되지 않아서 재실행

4. docker 설치 하기

apt install docker.io #docker 설치 명령어

5. Tomcat 설치하기

docker search tomcat #원하는 서비스 검색

docker run -d -p 8080:8080 --name tc consol/tomcat-7.0 #docker 이미지를 설치, Tomcat 서비스 설치

6. Tomcat 접속

톰켓이 실행된 것을 확인할 수 있다.

728x90