Home > Docker, Ubuntu > Visual Studio Code in Ubuntu as root

Visual Studio Code in Ubuntu as root

2016/12/29

It is bad, but sometimes you must work as root.
I was creating a Dockerfile for creating a Docker container, after some struggle i found how to launch Code as root:

code . --user-data-dir='.' filename.ext

In my case: code . –user-data-dir=’.’ Dockerfile

Code complains that should be not launched as root, but it works.

Advertisements
Categories: Docker, Ubuntu
%d bloggers like this: