You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Docker - Docker mod for all images
2
2
3
-
This mod adds `docker` and `docker-compose`binaries to any linuxserver image.
3
+
This mod adds the `docker`binary as wells as the `buildx`and the `compose`plug-ins to any linuxserver image.
4
4
5
5
**IMPORTANT NOTE**: For docker access inside a container, a volume mapping needs to be added for `/var/run/docker.sock:/var/run/docker.sock:ro` in the container's docker run/create/compose. If you'd like to connect to a remote docker service instead, you don't have to map the docker sock; you can either set an env var for `DOCKER_HOST=remoteaddress` or use the docker cli option `-H`.
echo "**** docker and docker-compose already installed, skipping ****"
14
19
fi
15
20
16
-
if [ -S /var/run/docker.sock ]; then
21
+
if [[ -S /var/run/docker.sock ]]; then
17
22
DOCKER_GID=$(stat -c '%g' "/var/run/docker.sock")
18
23
if id -G abc | grep -qw "$DOCKER_GID"; then
19
24
exit 0
20
25
else
21
26
DOCKER_NAME=$(getent group "${DOCKER_GID}" | awk -F: '{print $1}')
22
-
if [ -z "${DOCKER_NAME}" ]; then
27
+
if [[ -z "${DOCKER_NAME}" ]]; then
23
28
DOCKER_NAME="dockergroup"
24
29
groupadd -g "${DOCKER_GID}" "${DOCKER_NAME}"
25
30
fi
26
31
usermod -aG "${DOCKER_NAME}" abc
27
32
fi
28
-
elif [ -n "$DOCKER_HOST" ]; then
33
+
elif [[ -n "$DOCKER_HOST" ]]; then
29
34
echo "**** Remote docker service $DOCKER_HOST will be used ****"
30
35
else
31
36
echo "**** Please map /var/run/docker.sock for access to docker service on host. Alternatively you can manually define a remote host address with the docker cli option -H ****"
0 commit comments