Support docker desktop on Linux #1759
Labels
size/sm
Small level of effort
status/ready
Issue ready to be worked on.
type/bug
Issue that reports an unexpected behaviour.
Milestone
Description
By default it appears
build pack
only checks/var/run/docker.sock
Docker desktop for Linux creates the socket in
$HOME/.docker/desktop/docker.sock
When running pack build on Linux with Docker desktop installed I get the error:
ERROR: failed to build: failed to fetch builder image 'gcr.io/buildpacks/builder:latest': Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Proposed solution
It should check if
$HOME/.docker/desktop/docker.sock
exists and use that if it doesDescribe alternatives you've considered
Creating a symlink works for me as a work around, but this may not work for everyone
sudo ln -s $HOME/.docker/desktop/docker.sock /var/run/docker.sock
The text was updated successfully, but these errors were encountered: