Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to install due to docker socket file not in right place. #133

Open
NeerajGartia21 opened this issue Mar 14, 2023 · 11 comments
Open

Fail to install due to docker socket file not in right place. #133

NeerajGartia21 opened this issue Mar 14, 2023 · 11 comments

Comments

@NeerajGartia21
Copy link

Description

while setting up Velacore using velad install, the following error occurred.

Screenshot 2023-03-14 at 8 12 35 PM

The following three containers are running.

Screenshot 2023-03-14 at 8 15 16 PM

System info

MacOS ventura 13.1

@chivalryq
Copy link
Member

Hi, what's your docker version? Are you using docker desktop?

@NeerajGartia21
Copy link
Author

Docker version is 20.10.20 and I'm using docker desktop.

@chivalryq
Copy link
Member

Can you check whether /var/run/docker.sock is ok?

@NeerajGartia21
Copy link
Author

NeerajGartia21 commented Mar 14, 2023

docker.sock is not there in /var/run

it is in /Users/neerajgartia/.docker/run/docker.sock.

@NeerajGartia21
Copy link
Author

Thanks @chivalryq ,
The issue got resolved by running sudo ln -s $HOME/.docker/run/docker.sock /var/run/docker.sock
Now Velacore is installed perfectly.

@NeerajGartia21
Copy link
Author

vela CLI is not installed and its showing

fail to install vela CLI: Fail to create symlink: symlink /usr/local/bin/velad /usr/local/bin/vela: permission denied

@chivalryq
Copy link
Member

You can create a symlink from /usr/local/bin/velad to /usr/local/bin/vela @NeerajGartia21

@chivalryq chivalryq changed the title Error in installation of VelaCore Fail to install due to docker socket file not in right place. Mar 15, 2023
@NeerajGartia21
Copy link
Author

Thanks @chivalryq , It got successfully installed.

@chivalryq
Copy link
Member

Cool! I'm gonna close this issue since it's addressed.

@justenwalker
Copy link

@NeerajGartia21 @chivalryq

If you run Docker Desktop, /var/run/docker.sock is no longer created. See: docker/for-mac#6529

A work-around without needing to sudo ln -s is to explicitly set the DOCKER_HOST environment variable before running velad:

export DOCKER_HOST="unix://$HOME/.docker/run/docker.sock"
velad install

@chivalryq
Copy link
Member

chivalryq commented Jul 13, 2023

@justenwalker Great job! I'll reopen the issue before velad can detect the alternate path for docker socket.

@chivalryq chivalryq reopened this Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants