Currently the official Docker app does not allow users and/or applications to interact with docker without escalating to root privileges and needless to say (but I will anyway) escalating to root privileges is a security concern, especially for long running applications. Normally, a docker group is added to the system (pretty much all Linux based distros does this) to which users and/or applications are added (see the official documentation) and for Ubuntu at least the ownership of the docker socket is set to root:docker and permissions to 660 as below.
Code: Select all
# From my Ubuntu 20.04 system
$ stat -c '%A %a %U:%G %n' /var/run/docker.sock
srw-rw---- 660 root:docker /var/run/docker.sock
Code: Select all
# From my AS6604T running ADM 4.3.0.RSB1
# stat -c '%A %a %U:%G %n' /var/run/docker.sock
srw-rw---- 660 root:root /var/run/docker.sock
Regards