Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS SAM: Build Failed Error: Docker is unreachable. Docker needs to be running to build inside a container

Im running AWS SAM and using sam build --use-container then get the following error.

Starting Build inside a container Building function 'SamTutorialFunction Build Failed Error: Docker is unreachable. Docker needs to be running to build inside a container

I run sudo service docker start before and still get the same error.

like image 994
Ordep81 Avatar asked Jan 23 '26 12:01

Ordep81


1 Answers

sudo ln -s "$HOME/.docker/run/docker.sock" /var/run/docker.sock

work for me

like image 164
William Portillo Avatar answered Jan 25 '26 07:01

William Portillo