본문 바로가기

반응형

전체 글

[명령어] docker system prune docker system prune : 사용되지 않는 모든 데이터를 제거 $ docker system prune --all WARNING! This will remove: - all stopped containers - all networks not used by at least one container - all images without at least one container associated to them - all build cache Are you sure you want to continue? [y/N] y Total reclaimed space: 0B 더보기
[명령어] docker rm docker rm 명령어 : 컨테이너 제거 ###특정 컨테이너 제거 $ docker rm ###모든 컨테이너 제거 $ docker rm -f $(docker ps -aq) 컨테이너 상태를 판단하여 제거 ###컨테이너 상태가 exited만 제거(STATUS : Exited (0) 7 days ago) $ docker rm $(docker ps --all -qf status=exited) ###컨테이너 상태가 dead만 제거 $ docker rm $(docker ps --all -qf status=dead) 더보기
CentOS 7에서 bash 자동 완성을 사용하는 방법 CentOS 7에서 bash 자동 완성을 사용하는 방법 bash-completion, bash-completion-extras 설치 yum install -y bash-completion bash-completion-extras bash_completion.sh 편집 find / -name bash_completion.sh $ find / -name bash_completion.sh /etc/profile.d/bash_completion.sh vim /etc/profile.d/bash_completion.sh # Check for interactive bash and that we haven't already been sourced. [ -z "$BASH_VERSION" -o -z "$PS1" -o -n.. 더보기
[Kubernetes] kubernetes localhost:8080 was refused 오류 kubernetes localhost:8080 was refused 오류 $ kubectl get pods The connection to the server localhost:8080 was refused - did you specify the right host or port? 환경 변수 등록 $ mkdir -p $HOME/.kube $ sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config^C $ chown $(id -u):$(id -g) $HOME/.kube/config kubectl get pods 명령 실행 $ kubectl get pods NAME READY STATUS RESTARTS AGE nginx 1/1 Running 0 12h 더보기
[Kubernetes] kubernetes nginx 배포 테스트 -2 kubernetes nginx 배포 테스트 -2 nginx 컨테이너 실행 root@bk8sm1:~$ kubectl run nginx-app --image nginx --port=80 pod/nginx-app created ###kubectl get pods -o wide root@bk8sm1:~$ kubectl get pods --output=wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES nginx-app 1/1 Running 0 14m 10.244.2.2 bk8sn3 Serveivce 실행 root@bk8sm1:~$ kubectl expose pod nginx-app service/nginx-app exposed r.. 더보기
[Kubernetes] Kubernetes docker cgroupfs 오류 docker cgroupfs 오류 $ kubeadm init --apiserver-advertise-address=10.255.255.111 --pod-network-cidr=10.255.1.0/24 W1004 20:24:32.378748 9552 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io] [init] Using Kubernetes version: v1.19.2 [preflight] Running pre-flight checks [WARNING IsDockerSystemdCheck]: detected "cgroup.. 더보기
[Kubernetes] Kubernetes 설치 -1 Kubernetes(k8s) 설치 마스터(Master) 노드/워커(Worker) 노드 적용 호스트명 변경 $ hostnamectl set-hostname {호스트이름} 각 노드에 호스트 파일 등록 $ vim /etc/hosts # kubernetes cluster 10.255.255.111 bk8sm1 10.255.255.121 bk8sn1 10.255.255.122 bk8sn2 10.255.255.123 bk8sn3 컨테이너 런타임 설치(도커 설치) $ curl -fsSL https://get.docker.com -o get-docker.sh $ chmod +x get-docker.sh $ sh get-docker.sh $ usermod -aG docker $USER $ systemctl enable .. 더보기
[VPN] SoftEther VPN 설치 및 설정-3 VPN Administrator 패스워드 변경 $ ./vpncmd VPN Server>serverpasswordset ServerPasswordSet command - Set VPN Server Administrator Password Please enter the password. To cancel press the Ctrl+D key. Password: ********* Confirm input: ********* The command completed successfully. 더보기

728x90
반응형