728x90
반응형
minikube start를 수행하면서 "Exiting due to GUEST_PROVISION_CP_PUBKEY" 에러를 발생할 경우
$ minikube start 😄 minikube v1.33.1 on Ubuntu 22.04 (amd64) ✨ Automatically selected the docker driver. Other choices: none, ssh 📌 Using rootless Docker driver 👍 Starting "minikube" primary control-plane node in "minikube" cluster 🚜 Pulling base image v0.0.44 ... 🔥 Creating docker container (CPUs=2, Memory=2200MB) ... ✋ Stopping node "minikube" ... 🛑 Powering off "minikube" via SSH ... 🔥 Deleting "minikube" in docker ... 🤦 StartHost failed, but will try again: creating host: create: creating: prepare kic ssh: copying pub key: docker copy /tmp/tmpf-memory-asset3755755823 into minikube:/home/docker/.ssh/authorized_keys, output: Error response from daemon: failed to Lchown "/home/docker/.ssh/authorized_keys" for UID 1904764111, GID 1000 (try increasing the number of subordinate IDs in /etc/subuid and /etc/subgid): lchown /home/docker/.ssh/authorized_keys: invalid argument : exit status 1 🔥 Creating docker container (CPUs=2, Memory=2200MB) ... 😿 Failed to start docker container. Running "minikube delete" may fix it: creating host: create: creating: prepare kic ssh: copying pub key: docker copy /tmp/tmpf-memory-asset2598332041 into minikube:/home/docker/.ssh/authorized_keys, output: Error response from daemon: failed to Lchown "/home/docker/.ssh/authorized_keys" for UID 1904764111, GID 1000 (try increasing the number of subordinate IDs in /etc/subuid and /etc/subgid): lchown /home/docker/.ssh/authorized_keys: invalid argument : exit status 1 ❌ Exiting due to GUEST_PROVISION_CP_PUBKEY: Failed to start host: creating host: create: creating: prepare kic ssh: copying pub key: docker copy /tmp/tmpf-memory-asset2598332041 into minikube:/home/docker/.ssh/authorized_keys, output: Error response from daemon: failed to Lchown "/home/docker/.ssh/authorized_keys" for UID 1904764111, GID 1000 (try increasing the number of subordinate IDs in /etc/subuid and /etc/subgid): lchown /home/docker/.ssh/authorized_keys: invalid argument : exit status 1 |
에러 메세지를 잘보면
chown /home/docker/.ssh/authorized_keys: invalid argument
lima를 사용하면 홈디렉토리가 "/home/lima.linux"이고
"/home/docker" 디렉토리는 없다.
따라서 "/home/docker" 생성 및 .ssh 파일을 /home/docker/.ssh에 복사한다.
728x90
반응형
'IT 기타 > Docker-K8S' 카테고리의 다른 글
kubernetes.config.config_exception.ConfigException: Service host/port is not set. (0) | 2024.08.26 |
---|---|
Minikube 설치 및 예제 (0) | 2024.08.23 |
Docker 명령어 (0) | 2024.08.23 |
Docker Lima(Linux virtual machines)로 Docker Desktop 대체/설치 하기 (0) | 2024.08.23 |