Skip to content

Commit 71439d5

Browse files
authored
Login to the shell as the correct user insted of root
1 parent a3f911d commit 71439d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Taskfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function restart {
2828

2929
function shell {
3030
start
31-
docker exec -it $(docker ps -q --filter="NAME=${project}-${appContainer}") bash
31+
docker compose exec -u $(id -u):$(id -g) ${appContainer} bash
3232
}
3333

3434
function default {

0 commit comments

Comments
 (0)