Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Set user for docker container in Eclipse_CDT(How can I pass a "user" (e.g. current host user) to the docker container under Eclipse_CDT?)
Set user for docker container in Eclipse_CDT [message #1836922] Mon, 18 January 2021 18:39 Go to next message
ac ac is currently offline ac acFriend
Messages: 7
Registered: January 2021
Junior Member
Hi, I would like to understand how start docker under Eclipse_CDT.

I know that I can mount volumes under the project settings (Project -> Properties -> Settings -> Container Settings). But with which "user" is the docker container started (e.g. by a build process or by running a script on Build Targets)?

When I start a container in the terminal it looks something like this:
docker run -it --user $UID:$GID <IMAGE_NAME> bash


If no user is specified on "docker run", "root" is chosen.

How can I pass a "user" (e.g. current host user) to the docker container under Eclipse_CDT?

Thanks a lot


Eclipse Version:
- Version: 2020-06 (4.16.0)
- Build id: 20200615-1200
Re: Set user for docker container in Eclipse_CDT [message #1842027 is a reply to message #1836922] Mon, 07 June 2021 16:52 Go to previous messageGo to next message
ac ac is currently offline ac acFriend
Messages: 7
Registered: January 2021
Junior Member
Hello.
Can't anyone help me?
Am I in the wrong subforum?

Thanks
Re: Set user for docker container in Eclipse_CDT [message #1843614 is a reply to message #1842027] Tue, 10 August 2021 19:15 Go to previous messageGo to next message
apollos dada is currently offline apollos dadaFriend
Messages: 5
Registered: April 2021
Junior Member
Hey, have you find the help that you needed ?
Re: Set user for docker container in Eclipse_CDT [message #1843825 is a reply to message #1843614] Thu, 19 August 2021 16:37 Go to previous message
ac ac is currently offline ac acFriend
Messages: 7
Registered: January 2021
Junior Member
Unfortunately, no.
Previous Topic:Setup C++ on Eclipse Java IDE
Next Topic:After 2021-06 update Workspace include paths don't work
Goto Forum:
  


Current Time: Thu Apr 18 07:14:11 GMT 2024

Powered by FUDForum. Page generated in 0.01952 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top