
학습 목적으로 첫 번째 kubernetes 클러스터를 설정하고 싶습니다.
3개의 lxc 컨테이너가 실행 중입니다. AlmaLiunx 8.4
*하나는 컨트롤러가 되고 나머지 2개는 작업자 노드가 됩니다.
나는 가이드로서 사용하고 있다이 튜토리얼. 그러나 Podman을 컨테이너 런타임으로 사용하고 작업자 노드에 이미 설치했습니다. kubeadm init
컨트롤러에서 명령을 실행할 때 docker가 요구사항이라는 오류가 발생합니다.
# kubeadm init
[init] Using Kubernetes version: v1.22.1
[preflight] Running pre-flight checks
[preflight] WARNING: Couldn't create the interface used for talking to the container runtime: docker is required for container runtime: exec: "docker": executable file not found in $PATH
[WARNING FileExisting-tc]: tc not found in system path
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
error execution phase preflight: docker is required for container runtime: exec: "docker": executable file not found in $PATH
To see the stack trace of this error execute with --v=5 or higher
추가하여 속이려고 했지만 alias docker-'podman'
의도한 효과가 없었습니다(별명을 테스트했습니다. 작동합니다).
먼저 docker로 클러스터를 설정하고 나중에 작업자 노드에서 podman으로 교체해야 하는지, 아니면 설정 절차 중에 추가해야 하는 비밀 podman 소스가 있는지 궁금합니다.
답변1
주요 문제는 다음과 같습니다.
WARNING: Couldn't create the interface used for talking to the container runtime: docker is required for container runtime: exec: "docker": executable file not found in $PATH
이는 Docker가 전혀 설치되어 있지 않거나 해당 실행 파일이 PATH에 없음을 의미합니다. docker가 설치되어 있는지 확인하고 필요한 경우 설치해야 합니다. 그런 다음 docker 실행 파일이 PATH에 있는지 확인하십시오.
또한보십시오이 비슷한 질문.