Files
install-sh/DOCS/WIN-02-SYSTEM-DEVOPS.md
T

127 lines
5.3 KiB
Markdown
Raw Normal View History

# 🐳 [Windows] 2. 시스템 & 컨테이너 DevOps
[⬅️ 메인 README로 돌아가기](../README.md) | [🍎 macOS / 🐧 Linux 가이드 보기](./UNIX-02-SYSTEM-DEVOPS.md)
---
## ⚡ 빠른 원클릭 설치 (PowerShell / CMD)
### 2.1. bottom (btm)
* **CMD 창에서 실행:**
```cmd
powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-bottom.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-bottom.ps1' -OutFile $t; & $t"
```
* **PowerShell 창에서 실행:**
```powershell
$t="$env:TEMP\install-bottom.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-bottom.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t
```
### 2.2. all-smi
* **CMD 창에서 실행 (.ps1 또는 .bat):**
```cmd
powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-all-smi.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-all-smi.ps1' -OutFile $t; & $t"
```
*배치 파일(.bat) 실행 시:*
```cmd
curl -fsSL "https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-all-smi.bat" -o "%TEMP%\install-all-smi.bat" && "%TEMP%\install-all-smi.bat"
```
* **PowerShell 창에서 실행:**
```powershell
$t="$env:TEMP\install-all-smi.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-all-smi.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t
```
### 2.3. Docker
* Windows에서는 [Docker Desktop for Windows](https://www.docker.com/products/docker-desktop/)를 설치하거나, WSL2 내부에서 리눅스용 `install-docker.sh`를 실행하세요.
### 2.4. ctop
* **CMD 창에서 실행:**
```cmd
powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-ctop.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-ctop.ps1' -OutFile $t; & $t"
```
* **PowerShell 창에서 실행:**
```powershell
$t="$env:TEMP\install-ctop.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-ctop.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t
```
### 2.5. lazydocker
* **CMD 창에서 실행:**
```cmd
powershell -ExecutionPolicy Bypass -c "[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $t=\"$env:TEMP\install-lazydocker.ps1\"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-lazydocker.ps1' -OutFile $t; & $t"
```
* **PowerShell 창에서 실행:**
```powershell
$t="$env:TEMP\install-lazydocker.ps1"; iwr -useb 'https://gl.isitsoft.kr/publicproj/install-sh/-/raw/main/install-lazydocker.ps1' -OutFile $t; powershell -ExecutionPolicy Bypass -File $t
```
---
## 📖 도구별 상세 사용법 및 단축키
### 2.1. [bottom (btm)](https://github.com/ClementTsang/bottom)
CPU 코어별 사용률, RAM/Swap, 네트워크 흐름, 디스크 I/O를 실시간 그래프로 보여주는 시스템 리소스 모니터링 TUI 도구입니다.
```powershell
btm # 실행 명령어
```
| 단축키 | 동작 |
| :--- | :--- |
| `q` / `Esc` | 프로그램 종료 |
| `F1` ~ `F5` | 메트릭 모니터링 탭 이동 |
| `↑` `↓` | 프로세스 목록 선택 이동 |
| `k` / `dd` | 선택한 대상 프로세스 강제 종료 (Kill) |
| `/` | 실시간 프로세스명 검색 필터링 |
---
### 2.2. [all-smi](https://github.com/lablup/all-smi)
Lablup에서 개발한 이종(Heterogeneous) 가속기 및 GPU/NPU 자원 통합 모니터링 CLI/TUI 도구입니다.
```powershell
all-smi # 인터랙티브 모니터링 TUI 세션 시작
all-smi --help # 도움말 및 사용 가능 옵션 확인
```
---
### 2.3. [Docker](https://www.docker.com/)
컨테이너 기반 애플리케이션 가상화 플랫폼입니다.
```powershell
docker run hello-world # 동작 유효성 테스트
docker ps # 가동 중인 컨테이너 목록
docker compose up -d # 멀티 컨테이너 환경 백그라운드 구동
```
---
### 2.4. [ctop](https://github.com/bcicen/ctop) & 2.5. [lazydocker](https://github.com/jesseduffield/lazydocker)
#### [ctop 사용법]
```powershell
ctop # 가동 명령어
```
| 단축키 | 동작 |
| :--- | :--- |
| `q` / `Esc` | 프로그램 종료 |
| `↑` `↓` | 컨테이너 리스트 이동 |
| `l` | 선택된 컨테이너의 실시간 로그 화면 로드 |
| `a` | 숨겨진 비활성 컨테이너까지 전부 표시 |
| `S` / `R` | 선택된 컨테이너 정지 / 즉시 재시작 |
#### [lazydocker 사용법]
```powershell
lazydocker # 가동 명령어
```
| 단축키 | 동작 |
| :--- | :--- |
| `q` | 프로그램 종료 |
| `↑` `↓` | 목록 패널 탐색 |
| `Enter` | 컨테이너 상세 로그 및 자원 소비 통계 보기 |
| `s` / `r` | 컨테이너 인스턴스 정지 (Stop) / 재시작 (Restart) |
| `e` | 컨테이너 내부 터미널 즉시 실행 진입 (Exec) |
| `x` | 컨테이너 강제 파괴 및 제거 (Remove) |
---
[⬅️ 이전: 1. 터미널 관리 & 파일 유틸리티](./WIN-01-TERMINAL-FILE.md) | [🏠 메인 README](../README.md) | [다음: 3. 개발 유틸리티 ➡️](./WIN-03-DEV-UTILS.md)