Skip to content

Commit abfae1b

Browse files
authored
fix: Add coder user to docker group on installation (#2693)
This makes for a simpler setup, and reduces the likelihood a user runs into a strange issue.
1 parent 752d609 commit abfae1b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

preinstall.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,14 @@ if ! id -u $USER >/dev/null 2>&1; then
1111
--user-group \
1212
--shell /bin/false \
1313
$USER
14+
15+
# Add the Coder user to the Docker group.
16+
# Coder is frequently used with Docker, so
17+
# this prevents failures when building.
18+
#
19+
# It's fine if this fails!
20+
usermod \
21+
--append \
22+
--groups docker \
23+
$USER 2>/dev/null || true
1424
fi

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy