최대 1 분 소요

문제 상황

docker exec -it redis_db bash 커맨드로 Docker Container에 접속시 아래와 같은 에러가 발생하는 경우가 있다.

OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown

문제 원인

Docker Image가 Alpine이라면 bash 혹은 /bin/bash를 지원하지 않을 수 있다고 한다.

해결 방법

대신 /bin/sh를 사용해보자.

$ docker exec -it redis_db /bin/sh

Ref.



💛 개인 공부 기록용 블로그입니다. 👻

맨 위로 이동하기