Comments (5)
Can I get your input on this, @willgraf?
from kiosk-console.
I think I resolved this on the EC2 bastion machine by adding the current user to the docker
user group.
from kiosk-console.
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.
If you run sudo
, make sure you pass -E
so you pass your environment.
sudo -E make ....
from kiosk-console.
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)
- Move Prometheus rules into a separate ConfigMap. HOT 2
- Deepcell.org deployment returns error on Predict console HOT 1
- New workflows may require changes to tf-serving and consumer settings.
- Separate configuration and tensorflow-serving containers in the tf-serving chart. HOT 1
- Docker run command in readthedocs
- Multizone clusters with GPU_NODE_MIN_SIZE=1 must have a GPU quota of at least 2. HOT 1
- Cluster created but HPAs failed to deploy HOT 1
- Change default name/options for available models HOT 2
- Error messages are not displayed for zips of images
- Creation screen sometimes gets disconnected from the process it's tailing.
- dnsSolver01 Service Account can have a maximum number of keys. HOT 1
- GKE 1.16.X is no longer supported
- Outdated instructions for installing Docker on google cloud Ubuntu VM
- Maximum batch size set by tf_serving pod instead of consumer HOT 1
- Consumer uses cached prediction if uploaded file name has been used previously
- Upgrade kiosk to run tensorflow 2.8 models HOT 1
- Credential authentication fails during GKE configuration HOT 2
- Bump Nuclear Segmentation and Tracking to version 7 HOT 1
- Read the Docs build requirements
- Google Cloud authorization failed during GKE configuration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiosk-console.