fcwu / docker-ubuntu-vnc-desktop

A Docker image to provide web VNC interface to access Ubuntu LXDE/LxQT desktop environment.
Apache License 2.0
3.91k stars 1.42k forks source link

What is the best way to add ubuntu user to docker group? #303

Closed eshk12 closed 1 year ago

eshk12 commented 1 year ago

I am installing docker on this image, and I am facing some issues with permissions. I want to add ubuntu user to the docker group, I've tried to run this command from the Dockerfile but it said that ubuntu is not exists: RUN usermod -aG docker root.

there is a flow that i can run this line with sudo permission on startup or image creation?

eshk12 commented 1 year ago

I have figured it out, by manipulating /startup.sh file