본문 바로가기

IT/리눅스

LXD 주요 명령어

반응형
단계명령어 

 

LXD 설치 sudo snap install lxd
LXD 초기화 sudo lxd init
컨테이너 생성 (기본) lxc launch ubuntu:16.04 mycontainer
프로필 생성 (클라우드-이니트) lxc profile create myprofile
컨테이너 생성 (프로필 사용) lxc launch Ubuntu:16.04 mycontainer --profile myprofile
컨테이너 접속 (루트 쉘) lxc exec mycontainer -- bash
IP 확인 lxc list
SSH 접속 ssh myuser@IP_ADDRESS (클라우드-이니트 사용자)
이미지 수동 가져오기 lxc image import path/to/image_file --alias Ubuntu_16.04
컨테이너로 파일 옮기는 방법 lxc file push /path/on/host mycontainer/path/in/container
호스트로 파일 옮기는 방법 lxc file pull mycontainer/path/in/container /path/on/host 

 

반응형

'IT > 리눅스' 카테고리의 다른 글

LXD 네트워크 설정 쉘파일  (1) 2025.03.08
ubuntu 12.04에 Hadoop 설치  (0) 2014.06.02
gsoap client, server 코딩 방법  (1) 2014.05.14
gsoap 방법  (0) 2014.05.12
gSoap & SSL & openssl  (1) 2014.05.12