• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

kubectl exec -it mongodb -- mongo 명령에서 에러 발생합니다.

23.08.13 18:33 작성 조회수 443

0

error: Internal error occurred: error executing command in container: failed to exec in container: failed to start exec "59e8cd96645d8c76d53dc4d9b6ab704fd5153ce7e0cc14787b1518baeeb042de": OCI runtime exec failed: exec failed: unable to start container process: exec: "mongo": executable file not found in $PATH: unknown

이렇게 에러메세지가 나오는데 컨테이너의 이미지의 버전을 달리해도 계속 똑같이 나오네요.. 뭐가 문제인지 잘 모르겠어서 선생님께 여쭤봅니다.

답변 1

답변을 작성해보세요.

1

박지용님의 프로필

박지용

질문자

2023.08.13

확인해보니 5.0버전 이후로는 -- mongosh 이라고 하면 된다고 하네요.. 저도 해결했습니다!

https://github.com/docker-library/mongo/issues/558