반응형 분류 전체보기126 [gitlab] fork & clone 차이 / fork 후 관계 끊는 방법 gitlab fork 원본 저장소와 관계 존재, merge request를 통해 원본 저장소에 수정 반영 요청, git 명령어 없음, gitlab의 기능 git clone 저장소 복제, git 명령어 이용 fork 관계 삭제 저장소 -> Settings -> General -> Advanced -> Remove fork relationship 상세한 정보를 보려면 아래 클릭클릭! https://docs.gitlab.com/ee/user/project/repository/forking_workflow.html Project forking workflow | GitLab Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibu.. 2021. 10. 6. [Docker] jenkins에서 이미지 빌드 할 때 권한 오류 발생 시 해결 방법 오류 메시지 msg="failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied" 원인 jekins 계정이 docker 그룹에 속해있지 않아서 권한이 없음 해결 방법 sudo usermod -a -G docker jenkins 2021. 9. 29. [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. 이전 1 ··· 9 10 11 12 13 14 15 ··· 21 다음