티스토리 뷰
Windows Setting
- Windows 기능 켜기/끄기 접속 후
가상 머신 플랫폼,Hyper-V체크
Download Docker Desktop
Download Guide : https://luckygg.tistory.com/165
Cannot enable Hyper-V serviceError- Link
Windows PowerShell이 실행되지 않을 경우 파일 위치를 열고Windows PowerShell ISE실행bcdedit /set hypervisorlaunchtype auto
WSL 2 installation is incompleteError
Docker Command
(example ubuntu)
search image :
# docker search ubuntudownload latest image :
# docker pull ubuntu:latestprint image list :
# docker imagescreate container :
# docker run -it --name=[Container NAME] [Image Repository]- ex.
# docker run -it --name=ubuntu_server ubuntu - ex.
# docker run -itd d27b9ffc5667 /bin/bash
- ex.
exie Shell
- exit : Ctrl + d
- 백그라운드 종료 : ctrl + p + q
Docker list :
# docker ps# docker ps -a는 모든 container 확인
attach container :
# docker attach [Container NAME]stop conatiner :
# docker stop [Container ID]remove conatiner :
# docker rm [Container ID]
Reference
ubuntu & SSH
SSH root 접속 Example
Update ubuntu :
# apt-get updateInstall SSH :
# apt-get install net-tools vim sshEdit SSH config :
# vim /etc/ssh/sshd_config- PermitRootLogin 주석을 제거한 후, prohibit-password 를 yes 로 수정
edit root password :
# passwd rootstart ssh service :
# service ssh startrestart ssh service :
# service ssh restart원격 접속 :
# ssh -p [PORT] root@[IP]- ex.
# ssh -p 22 root@127.17.0.2
- ex.
ubuntu Etc.
- 열린 PORT 확인 :
netstat -nap - LISTEN 중인 PORT :
netstat -nap | grep LISTEN - 특정 PORT :
netstat -nap | grep 22
- 열린 PORT 확인 :
## docker run -it -p [HOST PORT]:[CONTAINER PORT] --name [container name] ubuntu /bin/bash
docker run -it -p 9922:22 --name network_test ubuntu /bin/bash
## ssh -p [HOST PORT] id@IP
ssh -p 9922 root@127.0.0.1
Reference
'eTc' 카테고리의 다른 글
| [MacBook] 맥북 초기 불량 확인 (0) | 2022.02.04 |
|---|---|
| [Conference] SAMSUNG SDS Techtonic 2021 (0) | 2021.12.11 |
| [Finance] 7가지 금융 상품과 포트폴리오 작성 (0) | 2020.05.17 |
| [Finance] 자기소개서 작성, 기업 분석 (0) | 2020.05.16 |
| [Finance] 신용등급의 이해, 재무설계 이론 (0) | 2020.05.09 |