Closed juanbits closed 3 years ago
i open a terminal inside theia, and i see theia is using the user theia, not the root user like on the other containers
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
theia@ef664e407628:/home/myuserfolder$ whoami
theia
theia@ef664e407628:/home/myuserfolder$ ls
ls: cannot open directory '.': Permission denied
how can i change the user in the container?
Hi @juanremi ,
and i got this error on the docker container logs:
root ERROR [hosted-plugin: 29] ApplicationInsights:CorrelationIdManager [ Error: getaddrinfo EAI_AGAIN dc.services.visualstudio.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26) { errno: 'EAI_AGAIN', code: 'EAI_AGAIN', syscall: 'getaddrinfo', hostname: 'dc.services.visualstudio.com' } ]
this error causing i cant see the files?
I do not think so. I think this error is from a vscode extension trying to reach the Microsoft telemetry servers and failing. Telemetry is not enabled in the Theia application, but I understand that some vscode extensions still insist to send one message in that case, to let MS know that telemetry is disabled. So nothing to worry about, as far as I understand - it should not affect anything.
how can i change the user in the container?
- i tried to add the user theia un the centos, and then add to the user theia the group of the myuserfolder, but seems not works
Do I understand correctly that you mount a folder from the host machine, inside the container (/home/myuserfolder
), and all files in there are owned by user root, and so can be edited in Theia images where the default user is also root?
Something to try, that might work, is to make your own image, derived from theia-full
(edit: or another of our images from this repo), where you switch the user to root. e.g.:
FROM theiaide/theia-full:latest
USER root
$> docker build -t myTheiaFull:latest .
This contribution has been automatically marked as stale due to inactivity, and it will be closed if no further activity occurs. Thank you for contributing to Theia!
Hi,
i deployed the theia-python and theia-php in a centos server and works fine, but when i deploy the theia-full i cant see the files in the files navigatorpanel
and i got this error on the docker container logs:
this error causing i cant see the files?
how can i fix it?