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

docker install yb-voyager host script doesn't have sudo if root needed for docker #823

Open
markwjeske opened this issue Apr 26, 2023 · 1 comment
Labels
triage Needs to be triaged

Comments

@markwjeske
Copy link

After installing voyager for docker and installing the host script yb-voyager I get the following:

yb-voyager version
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied.

The last line of /usr/local/bin/yb-voyager has:

$dockerCMD

Adding sudo allows the script to run:

sudo $dockerCMD

yb-voyager version
GIT_COMMIT_HASH=af2176a3b9d346bb23c51fdfc508bc863cf992c1
VERSION=1.2.0

@github-actions github-actions bot added the triage Needs to be triaged label Apr 26, 2023
@ShivanshGahlot
Copy link
Contributor

ShivanshGahlot commented Apr 27, 2023

Hey @markwjeske this issue happens because your docker installation has not been configured to be used by a non-root user. You can follow these steps to configure it:
Docker Docs
Let me know if you face any problem after this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants