inblog logo
|
sxias
    Docker

    [Docker] 1. Docker Env

    문정준's avatar
    문정준
    Jul 28, 2025
    [Docker] 1. Docker Env
    Contents
    ubuntu 설치docker desktopTomcat 설치

    ubuntu 설치

    • docker pull ubuntu : ubuntu image를 내려받아 설치
    • docker run -it ubuntu bash : ubuntu image에서 bash를 상호작용 가능하도록 실행
      • docker 위에 설치한 ubuntu가 가상으로 실행됨
    notion image
     

    docker desktop

    • 설치한 ubuntu image 확인 가능
    notion image
     

    Tomcat 설치

    • Docker Hub에서 tomcat 검색
    notion image
     
    • 다운로드
      • docker desktop에서 설치하거나, docker pull + docker run 명령어 수행
      • 또는 아래 명령어 입력
    docker run -dit --rm tomcat:9.0
    notion image
     
    • 실행 중인 톰캣 확인
      • 아래 명령어 입력
    docker ps
    • 톰캣 폴더 진입
      • 아래 명령어 입력
    docker exec -it 'CONTAINER ID 앞 네 글자' bash
    notion image
     
    • 리눅스 bash가 실행됨
      • apt가 update 되어 있지 않음 : netstat -nlpt 불가
      • ps -ef로 실행 중인 프로세스 확인
    notion image
     
    Share article
    Contents
    ubuntu 설치docker desktopTomcat 설치

    Sxias ㆍ a32176740@gmail.com

    RSS·Powered by Inblog