본문 바로가기
IT개발/Linux

[유닉스/리눅스] VMware 17설치+ Ubuntu 24설치 + 도커(docker)설치

by Thompson 2024. 9. 19.
728x90

1. VMware 17 가상머신 설정

VMware 17 설치

https://softwareupdate.vmware.com/cds/vmw-desktop/player/17.5.2/23775571/windows/core/

 

VMware Workstation Pro: Now Available Free for Personal Use

VMware Desktop Hypervisor products Fusion and Workstation are used by millions of people every day to run virtual machines on their Windows, Linux and Mac computers. They give users the ability to quickly and easily build “local virtual” environments t

blogs.vmware.com

새 가상 머신 생성

  • VMware 실행 후 Create a New Virtual Machine 클릭.
  • Installer disc image file (iso) 선택 후 Ubuntu ISO (Ubuntu 24.04 아래 다운 링크 주소 )파일을 지정.

  • 운영체제 선택: Linux, 버전: Ubuntu 64-bit.

가상머신 설정 

  • CPU 및 메모리: 최소 2개 CPU, 4GB 이상 메모리 추천.
  • 하드 디스크: 20GB 이상 설정.
  • 네트워크: NAT 또는 Bridged 설정.

2. Ubuntu 24.04 리눅스 설치

https://ubuntu.com/download/desktop

 

https://ubuntu.com/download/desktop

 

ubuntu.com

  1. Ubuntu ISO 부팅: VMware 가상 머신을 시작하면 Ubuntu 설치가 시작됩니다.
  2. 언어 선택 및 설치 시작: 원하는 언어를 선택하고 Install Ubuntu 클릭.
  3. 디스크 설정: Erase disk and install Ubuntu 선택.
  4. 사용자 정보 입력: 이름, 컴퓨터 이름, 사용자 이름, 비밀번호 설정.
  5. 설치 완료: 설치가 완료되면 가상머신을 재부팅.

3. Docker 설치 과정

 

  • 시스템 패키지 업데이트
sudo apt-get update
  • 필요한 패키지 설치
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
  • Docker GPG 키 추가
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  • Docker APT 저장소 추가
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  • 시스템 패키지 업데이트
sudo apt-get update
  • Docker 설치
sudo apt-get install docker-ce docker-ce-cli containerd.io
  • Docker 설치 확인
sudo systemctl status docker
  • Hello World 컨테이너 실행
sudo docker run hello-world