Ad
Docker Non-root Access: Error Loading Config File:stat /home/wu/.docker/config.json
I finished the docker installation with non-root access, namely
1.define a docker user group
2.add my current user to the docker group
pass the test
docker run --rm hello-world
but when I start to provision my docker containers, somewhere in the procedure I got the error:
Error loading config file:stat /home/user/.docker/config.json:Permission Denied
seems to be docker is trying to access some resources but got denied
What is happening here? How could I fix this ?
thx
Ad
Answer
I've got the same error after upgrate from 1.4 to latest. Fix: manually create .docker/config.json ( put empty json object there {} ) and set ownership like this :
-rw-r--r-- 1 myuser docker /home/myuser/.docker/config.json
Ad
source: stackoverflow.com
Related Questions
- → Docker containers clustering
- → Connection refused when running October artisan command with docker exec in Jenkins
- → AngularJS doesn't work with third party pre-render service
- → checking query arguments for loopback ACLs to allow `find`ing the user's data only
- → Redirect users to different domains of the same web application according to their ip address location
- → Splitting up a Rails and React app into separate Docker containers?
- → local shopify app development with docker: Request origin could not be verified
- → Slow response times: Laravel 5.2 in Docker container
- → How to cache node_modules on Docker build?
- → How to use host network while linking to a container?
- → What is a good way to run a large number of mocha tests at once from the command line?
- → Bitcoin how to create a new account via RPC
- → Git clone not working with npm
Ad