I was wondering is there is any security concern, or otherwise, why Docker comes in root mode in Bluefin-DX. Meaning, the user have to issue commands such as sudo docker ps
, for instance, to get the status of containers.
1 Like
Hey @f0nzie !
I had the same question! When I tried to run the hello-world
test container I got a permission denied
error:
~
❯ docker run hello-world
docker: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Head "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
But, don’t worry! Bluefin has you covered. I found the Developer Mode needs to be enabled and then all works as you’d expect.
Read the docs, but for me I just had to run two commands:
ujust devmode
- this will prompt you to enable/disable developer mode. For me it was already enabledujust dx-group
- this will add your current user to the correct groups. I had to authenticate a number of times.
After all this you’ll be prompted to reboot. After running this, i get sudo
less docker easy peasy!
best of luck.
2 Likes