eggplantSword's avatar

Seting up Laradock error

I followed the docs for multiple projects https://laradock.io/docs/getting-started/#b-setup-for-multiple-projects but when I try to run docker-compose up -d nginx mysql I get the following error

unable to get image 'laradock-nginx': permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.48/images/laradock-nginx/json": dial unix /var/run/docker.sock: connect: permission denied

What did I miss? What do I need to do to fix this?

0 likes
3 replies
eggplantSword's avatar

for my own future reference, run

sudo usermod -aG docker ${USER}
su - ${USER}

Please or to participate in this conversation.