microsoft / microsoft/Windows-Containers

Is it possible to create another user with the same permissions as containeruser

Open
#390 63 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🔖 ADO gMSA question
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 manager virtual 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 containeruser to our custom user? We tried using wmic useraccount but containeruser was 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.