Skip to content

Commit b7039b0

Browse files
committed
removing user group setup and Docker socket checks
1 parent 1e05f43 commit b7039b0

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

docker/simple-container/entrypoint.sh

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,13 @@
11
#!/bin/sh
22
set -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
105
SHARED_LABS_DIR=${CLAB_SHARED_LABS_DIR:-/opt/containerlab/labs}
116
echo "Setting up labs directory: $SHARED_LABS_DIR"
127
mkdir -p "$SHARED_LABS_DIR"
138
mkdir -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
2913
echo "Executing command: $@"

0 commit comments

Comments
 (0)