728x90

Bootcamp 55

[AWS] eks 사용

# 1. 제어하기 위한 ec2 인스턴스 생성 - t2.small , storage -> 20G - 인스턴스 로그인 # 2. aws cli 설치 sudo apt-get install -y unzip curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install aws --version # 3. aws configure AWS Access Key ID [None]: 액세스키 AWS Secret Access Key [None]: 비밀_액세스키 Default region name [None]: ap-northeast-2 Default output format [..

Bootcamp/AWS 2024.02.05

[Docker] 이미지 생성 후 저장까지

# docker 컨테이너 생성 docker run -it --name mycont ubuntu:22.04 # ubuntu22.04로 들어가서 apt update apt install software-properties-common -y # 안에 python 및 pip 설치(환경) apt install python3.11 apt install python3-pip # 참고- 배포판마다 설치 명령어가 다름 ubuntu -> apt redhat(centos) -> yum, dnf alpine -> apk docker commit -a 'encore' -m 'project images' mycont project:0.1 docker save -o project.tar project:0.1 docker load ..

Bootcamp/Docker 2024.01.31

[Docker] Image 생성

# 도커 이미지 만들기 1 docker run -it --name commit_test ubuntu:14.04 # 이름이 commit_test # 들어가서 cd ~ echo test_first > first exit # image commit docker commit -a 'encore' -m 'first commit' commit_test myimage:0.1 # 'encore' : 누가 만들었는지 'first commit' : 왜 만들었는지 # 'myimage' : 이미지 이름 이미지가 생성된걸 볼거면 # docker imge 확인 docker images # 새로운 컨테이너로 들어가기 docker run -it --name commit_test2 myimage:0.1 cd ~ # first가 있는지..

Bootcamp/Docker 2024.01.31
728x90