File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22set -e
33
4- # Setup required user groups
5- API_GROUP=${API_USER_GROUP:- clab_api}
6- ADMIN_GROUP=${SUPERUSER_GROUP:- clab_admins}
7- REQUIRED_LOGIN_GROUP=" clab_admins"
8-
94# Setup labs directory
105SHARED_LABS_DIR=${CLAB_SHARED_LABS_DIR:-/ opt/ containerlab/ labs}
116echo " Setting up labs directory: $SHARED_LABS_DIR "
127mkdir -p " $SHARED_LABS_DIR "
138mkdir -p " $SHARED_LABS_DIR /users"
149
15- # Check Docker socket access
16- echo " Checking access to Docker socket..."
17- if [ ! -S /var/run/docker.sock ]; then
18- echo " ERROR: Docker socket /var/run/docker.sock not found. Make sure you've mounted it correctly." >&2
19- exit 1
20- fi
21-
22- if ! docker info > /dev/null 2>&1 ; then
23- echo " ERROR: Cannot connect to Docker daemon. Check if socket has correct permissions and the container is privileged." >&2
24- exit 1
25- fi
26- echo " Docker socket access verified."
10+ mkdir -p /var/run/netns
2711
2812# Now execute the command passed to the container
2913echo " Executing command: $@ "
You can’t perform that action at this time.
0 commit comments