microsoft / microsoft/Windows-Containers
Is it possible to create another user with the same permissions as containeruser
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 551
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
We follow the recommended approach for creating new users in our Dockerfile. When we create and link a gMSA with newly created containers, we are observing that running processes as our custom user fails to authenticate with SQL Server, but when the same process is ran as containeruser or NT Authority\NetworkService it's able to authenticate with SQL Server. We unfortunately cannot find any Dockerfile references showing how containeruser and containeradminstrator accounts are created so that we duplicate the same process. We had a few questions hoping someone else knows the answer:
- Can we create new local users that have the same permission as
containeruser? - Our understanding is that there is a
User managervirtual active directory and those users are part of that domain. How do we connect with that virtual AD and do we need to add our local user to that AD for this to work? - If it's not possible to create a user with the same permissions, can we rename
containeruserto our custom user? We tried usingwmic useraccountbutcontaineruserwas not found. - What type of permission can we give our custom user to do this one operation?
cc:
@ebroberson
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Windows container security guidance and the Dockerfile user-creation approach described in the issue. Investigate how containeruser, containeradministrator, gMSA, and SQL Server authentication relate, then document whether equivalent permissions or renaming are supported and what permission is needed for the operation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, sql
- Domain
- authentication, devops, infrastructure
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100