Docker for beginners and WEB UI

Bohuslav Kabrda bkabrda at redhat.com
Fri Mar 6 10:03:09 UTC 2015


----- Original Message -----
> On Thu, Mar 5, 2015, at 05:35 AM, Tomas Tomecek wrote:
> >
> > Put yourself in docker group, why would you run docker client as root?
> 
> https://lists.projectatomic.io/projectatomic-archives/atomic-devel/2015-January/msg00034.html

Interesting, thanks for sharing.
This makes me wonder how DevAssistant should approach this. Up until now, DevAssistant just added the invoking user to the "docker" group and then communicated with docker using docker-py library. Now, if we're not supposed to add the user to "docker" group, we can't use the library, because all the calls will fail - or we'd need to ask user to run DevAssistant as root, which is IMO wrong.
AFAIK there's no way to elevate DevAssistant permissions temporarily just to do the docker call. So what is the recommended approach to do this? (This is a general problem, I think, for code that needs to communicate with local Docker server.)

Thanks,
Slavek


More information about the env-and-stacks mailing list