id : The term 'id' is not recognized as the name of a cmdlet #401

Closed
opened 2025-10-14 17:21:40 -06:00 by navan · 0 comments
Owner

Originally created by @doodlewhale on 10/17/2020

I try and build docker image with:
docker build --build-arg UID=$(id -u ${USER}) --build-arg GID=$(id -g ${USER}) -t ghunt .

I get error:
`id : The term 'id' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:1 char:32

  • docker build --build-arg UID=$(id -u ${USER}) --build-arg GID=$(id -g ...
  •                            ~~
    
    • CategoryInfo : ObjectNotFound: (id:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

id : The term 'id' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:1 char:65

  • ... r build --build-arg UID=$(id -u ${USER}) --build-arg GID=$(id -g ${US ...
  •                                                            ~~
    
    • CategoryInfo : ObjectNotFound: (id:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException`
*Originally created by @doodlewhale on 10/17/2020* I try and build docker image with: `docker build --build-arg UID=$(id -u ${USER}) --build-arg GID=$(id -g ${USER}) -t ghunt .` I get error: `id : The term 'id' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:32 + docker build --build-arg UID=$(id -u ${USER}) --build-arg GID=$(id -g ... + ~~ + CategoryInfo : ObjectNotFound: (id:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException id : The term 'id' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:65 + ... r build --build-arg UID=$(id -u ${USER}) --build-arg GID=$(id -g ${US ... + ~~ + CategoryInfo : ObjectNotFound: (id:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException`
Sign in to join this conversation.
No labels
backdoor-try
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
can't read
can't read
can't read
can't read
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
good first issue
google-patch
google-patch
hacktoberfest-accepted
hacktoberfest-accepted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
knowledge-enrichment
known bug
question
question
question
question
question
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/GHunt#401
No description provided.