본문 바로가기
반응형

개발/Linux6

[Amazon ECS] 3. Amazon Elastic Container Registry에 이미지 푸시 # Amazon Elastic Container Registry에 이미지 푸시 * Amazon ECR - 관리형 AWS 도커 레지스트리 서비스 - 도커 CLI를 사용하여 이미지 푸시, 가져오기, 관리 1. hello-world 이미지를 저장할 Amazon ECR 리포지토리 생성 $ aws ecr create-repository --repository-name hello-repository --region region * 결과 { "repository": { "registryId": "aws_account_id", "repositoryName": "hello-repository", "repositoryArn": "arn:aws:ecr:region:aws_account_id:repository/hello-r.. 2021. 9. 10.
[Amazon ECS] 2. 도커 이미지 생성 # 간단한 웹 애플리케이션 도커 이미지 생성 1. DockerFile 파일 생성 - 도커 이미지에 사용할 기본 이미지 및 이를 설치하고 실행할 항목을 설명하는 매니페스트 자세한 내용은 아래 클릭클릭! Dockerfile reference docs.docker.com $ touch Dockerfile 2. Dockerfile 수정, 내용 추가 FROM ubuntu:18.04 # Install dependencies RUN apt-get update && \ apt-get -y install apache2 # Install apache and write hello world message RUN echo 'Hello World!' > /var/www/html/index.html # Configure apac.. 2021. 9. 10.
[Amazon ECS] 1. 도커 설치 # Amazon EC2 Container Service (ECS) 도커 설치 1. Amazon Linux2 또는 Amazon Linux AMI 인스턴스 시작 2. 인스턴스 연결 3. 인스턴스에 설치한 패키지 및 패키지 캐시 업데이트 $ sudo yum update -y 4. 최신 Docker Engine 패키지 설치 - Amazon Linux 2 $ sudo amazon-linux-extras install docker - Amazon Linux $ sudo yum install docker 5. 도커 서비스 시작 $ sudo service docker start 6. sudo 권한 없이 docker 명령을 실행할 수 있길 원하는 계정을 docker 그룹에 추가 $ sudo usermod -a -G do.. 2021. 9. 10.
[리눅스 명령어] usermod 계정정보변경 options 종류 계정정보변경 명령어 usermod [options] Options: -c, --comment COMMENT new value of the GECOS field -d, --home HOME_DIR user의 홈디렉토리 변경 -e, --expiredate EXPIRE_DATE 계정의 만료일 변경 -f, --inactive INACTIVE 만료 후 비밀번호 비활성화를 INACTIVE로 설정 -g, --gid GROUP GROUP을 새 기본 그룹으로 강제 사용 -G, --groups GROUPS 새로운 추가(보충) 그룹 목록 -a, --append 다른 그룹에서 사용자를 제거하지 않고 -G 옵션의 GROUPS에 사용자를 추가 -h, --help 도움말 메시지 표시 및 종료 -l, --login NEW_LOGIN.. 2021. 9. 10.
[리눅스 우분투] SSH 세션 접속 시간 늘리기 SSH 접속 시 세션이 자꾸 끊긴다면 아래 설정을 따라서 해주시면 아주 오래오래 세션이 살아있을수 있습니다 :) (보안상 걱정이 되신다면 적당한 시간으로 조절해주세요!) 세션 접속 시간 늘리기 vi /etc/ssh/sshd_config ClientAliveInterval 60 ### 60초마다 확인 ClientAliveCountMax 99999 ### 응답 없어도 접속 유지 횟수 /etc/init.d/sshd restart /etc/init.d/ssh restart 2021. 1. 7.
[해결] sh: 1: make: not found apt-get install --reinstall build-essential 2020. 9. 4.