Open grbinho opened 2 years ago
Hi everyone,
I ran into an issue when running emr-on-eks-custom-image having docker installed via Colima on a Mac.
emr-on-eks-custom-image
Even thought which docker returns a result and I am able to run docker commands in the cli, the tool returns the following error.
which docker
Amazon EMR on EKS - Custom Image CLI Version: 1.02 ... Checking if docker cli is installed [ERROR] docker cli doesn't exist but is required.
It turns out that docker.from_env() is not able to find docker socket when Colima is used.
docker.from_env()
I was able to work around the issue by exposing DOCKER_HOST environment variable like this
DOCKER_HOST
export DOCKER_HOST="$(docker context inspect colima -f '{{ .Endpoints.docker.Host }}')"
Apart from maybe making the error message clear, I don't think there is any real bug here.
This issue is more meant for documenting this workaround.
In my case, using docker for mac, the workaround was
sudo ln -s "$HOME/.docker/run/docker.sock" /var/run/docker.sock
Source
can you guys help me with the same issue in windows 11 docker desktop please??
Hi everyone,
I ran into an issue when running
emr-on-eks-custom-image
having docker installed via Colima on a Mac.Even thought
which docker
returns a result and I am able to run docker commands in the cli, the tool returns the following error.It turns out that
docker.from_env()
is not able to find docker socket when Colima is used.I was able to work around the issue by exposing
DOCKER_HOST
environment variable like thisApart from maybe making the error message clear, I don't think there is any real bug here.
This issue is more meant for documenting this workaround.