Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
gvatsal60 committed Nov 20, 2024
1 parent 9a86177 commit 8f6ee42
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Makefiles/docker.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ DOCKER_HOST = docker
# Specifies the context directory used for building the Docker image.
DOCKER_BUILD_CONTEXT = .

# Use current user's UID if not set, using `whoami` to get the username for fallback.
DOCKER_UID ?= $(shell id -u $(USER))
DOCKER_GID ?= $(shell id -g $(USER))

# Alternatively, if you're still facing issues with $USER being unset:
# UID (User ID) for the Docker container. Defaults to current user's UID.
DOCKER_UID ?= $(shell id -u)

# GID (Group ID) for the Docker container. Defaults to current user's GID.
DOCKER_GID ?= $(shell id -g)

# Arguments to pass to the Docker command for setting user and mounting volumes.
Expand Down

0 comments on commit 8f6ee42

Please sign in to comment.