본문 바로가기

리눅스

[리눅스] GitLab 컨테이너 레지스트리 사용하기 GitLab 컨테이너 레지스트리 사용하기 docker login docker login registry.binddns.com $ docker login registry.binddns.com Username: binddns Password: WARNING! Your password will be stored unencrypted in /root/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded docker build $ docker build -t r.. 더보기
[리눅스] GitLab root 초기 비밀번호 GitLab root 초기 비밀번호 - GitLab Version : 14.4.2 gitlab 로그 중간에 출력 $ docker-compose logs -f ... gitlab | Notes: gitlab | Default admin account has been configured with following details: gitlab | Username: root gitlab | Password: You didn't opt-in to print initial root password to STDOUT. gitlab | Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure.. 더보기
NGINX 특정 파일이나 디렉토리를 제외한 모든 연결을 제한 NGINX 특정 파일이나 디렉토리를 제외한 모든 연결을 제한 모든 연결 제한(나머지 요청 301 리다이렉트) location / { return 301 https://sangchul.kr; } 특정 파일이나 디렉터리(health_check.html 파일) 접근 허용 location ~ ^/health_check.html { #access_log off; access_log /var/log/nginx/elb-healthchecker-access.log main; } default.conf 파일 $ vim /etc/nginx/conf.d/default.conf # Settings for a HTTP enabled server. server { listen 80; server_name _; root /usr/.. 더보기
쿠버네티스 인그레스 컨트롤러 설치 쿠버네티스(kubernetes) 인그레스 컨트롤러 설치 : 쿠버네티스 인그레스 컨트롤러 설치 https://kubernetes.io/ko/docs/concepts/services-networking/ingress-controllers/ 베어메탈(Bare-metal) NodePort 사용 kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.4/deploy/static/provider/baremetal/deploy.yaml 또는 wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.4/deploy/static.. 더보기
CentOS 8에서 Yum Repository 서버를 구축하는 방법 CentOS 8에서 Yum Repository 서버를 구축하는 방법 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 8.4.2105 Repository 서버 구축 epel 패키지 설치 yum install -y epel-release createrepo 패키지 설치 yum install -y yum-utils createrepo 웹 서버(apache) 패키지 설치 yum install -y httpd mod_ssl 리포지토리 디렉터리 만들기(yum 저장소) mkdir -p /apps/repo_root/repo mkdir -p /apps/repo_root/repo/centos/7/{extras,isos,os,updates} mkdir -p /apps/repo.. 더보기
/var/run/docker.sock의 permission denied 발생하는 경우 /var/run/docker.sock의 permission denied 발생하는 경우 /var/run/docker.sock 파일에 대한 "Permission Denied" 오류는 Docker 소켓 파일에 대한 적절한 권한이 없을 때 발생할 수 있습니다. 이 파일은 Docker 데몬과 통신하기 위해 사용되며 일반적으로 Docker 관련 명령어를 실행할 때 필요합니다. docker search zookeeper $ docker search zookeeper Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.so.. 더보기
[draft] 쿠버네티스 대시보드를 설치하고 외부에서 접근할 수 있도록 설정하는 방법 쿠버네티스 대시보드를 설치하고 외부에서 접근할 수 있도록 설정하는 방법쿠버네티스 대시보드 설치쿠버네티스 대시보드를 설치합니다kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.6.1/aio/deploy/recommended.yaml$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.6.1/aio/deploy/recommended.yamlnamespace/kubernetes-dashboard createdserviceaccount/kubernetes-dashboard createdservice/kubernetes-dashboard creat.. 더보기
[draft] CentOS 7에서 Bash 자동 완성 기능을 사용하는 방법 CentOS 7에서 Bash 자동 완성 기능을 사용하는 방법CentOS 7에서 Bash 자동 완성 기능을 활성화하려면 bash-completion 패키지를 사용하여 자동 완성을 활성화할 수 있습니다.1. bash-completion 패키지 설치bash-completion 패키지를 설치해야 합니다.sudo yum install -y bash-completion2. bash-completion 활성화활성화하려면 .bashrc 파일을 수정합니다. bash-completion을 설치한 후에도 기본적으로 활성화되어 있지 않을 수 있습니다.sudo vim ~/.bashrcif [ -f /etc/bash_completion ]; then . /etc/bash_completionfisource ~/.bashrc(또는.. 더보기