Skip to content

Commit 5f7f551

Browse files
committed
make run uses UID/GID
1 parent b359417 commit 5f7f551

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ssh-container/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ docker-build: ssh-keys client-keys ## Build the container image with specified U
7878
@echo " $(CONTAINER_TOOL) inspect $(IMAGE_NAME):$(TAG) | grep -A 10 Labels"
7979

8080
# Run the container
81-
run: docker-build ## Run the container with SSH service
81+
run: docker-build ## Run the container with SSH service (as UID 1060 and GID 100)
8282
$(CONTAINER_TOOL) run -d \
8383
--platform linux/amd64 \
8484
--name $(CONTAINER_NAME) \
85+
--user $(UID):$(GID) \
8586
-p $(SSH_PORT):$(SSH_PORT) \
8687
-e NNF_CONTAINER_PORTS=$(SSH_PORT) \
8788
$(IMAGE_NAME):$(TAG)

0 commit comments

Comments
 (0)