Giter VIP home page Giter VIP logo

Comments (5)

dylanbannon avatar dylanbannon commented on June 3, 2024

Can I get your input on this, @willgraf?

from kiosk-console.

willgraf avatar willgraf commented on June 3, 2024

I think I resolved this on the EC2 bastion machine by adding the current user to the docker user group.

from kiosk-console.

willgraf avatar willgraf commented on June 3, 2024

Using a gcloud instance to run the kiosk, I found that my user was in the docker group (docker -v works) but had to use sudo to run make docker/build. I ran make docker/build and got different errors.

First Error:

$ make docker/build
Building vanvalenlab/kiosk:latest from ./Dockerfile with [] build args...
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.38/build?buildargs=%7B%7D&cachefrom=
%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&session=qfpuscq9vxtymbq5
60g750rao&shmsize=0&t=vanvalenlab%2Fkiosk%3Alatest&target=&ulimits=null&version=1: dial unix /var/run/docker.sock: connect: permission denied
/home/$USER/kiosk/build-harness/modules/docker/Makefile.build:9: recipe for target 'docker/build' failed
make: *** [docker/build] Error 1

Second Error:

$ make docker/build
Building vanvalenlab/kiosk:latest from ./Dockerfile with [] build args...
ERRO[0000] failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied 
context canceled
/home/$USER/kiosk/build-harness/modules/docker/Makefile.build:9: recipe for target 'docker/build' failed
make: *** [docker/build] Error 1

EDIT: After running the kiosk using sudo make ... I disconnected from the docker container, and found that even though I am in the docker group, I cannot use docker ps.

$ docker -v
Docker version 18.06.1-ce, build e68fc7a
$ docker ps
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http:
//%2Fvar%2Frun%2Fdocker.sock/v1.38/containers/json: dial unix /var/run/docker.sock: connect: permission denied

from kiosk-console.

osterman avatar osterman commented on June 3, 2024

If you run sudo, make sure you pass -E so you pass your environment.

sudo -E make ....

from kiosk-console.

dylanbannon avatar dylanbannon commented on June 3, 2024

Regarding @willgraf's issue, I had to learn this first-hand just now, but it turns out that docker -v will print out version info without the current user being a member of the docker user group, so the rest of what you observed makes sense since apparently the default user isn't a member of the docker group on the Ubuntu 18.04 image that Google Cloud distributes.

from kiosk-console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.