kasmtech / workspaces-images

Other
730 stars 241 forks source link

How to run the container with root user? #1

Closed qpb8023 closed 3 years ago

qpb8023 commented 3 years ago

sudo docker run --rm -it --shm-size=512m -p 6901:6901 -e VNC_PW=password kasmweb/desktop:1.9.0

How does this command add the root option

mmcclaskey commented 3 years ago

If you want to run a container as root add the "--user root" argument, though, it is not recommended. If the reason to run as root is to install software, you should instead create a custom image, install everything you need on the custom image. Here is a guide on creating custom images. https://kasmweb.com/docs/latest/how_to/building_images.html