yugabyte/yb-voyager

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

Opened this issue · 1 comments

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

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.