AzureTRE/.devcontainer/scripts/docker-client.sh

12 строки
187 B
Bash
Executable File

#!/bin/bash
set -e
if [ -z "$DOCKER_GROUP_ID" ]; then
groupadd docker
else
groupadd -g "$DOCKER_GROUP_ID" docker
fi
usermod -aG docker "$1" && newgrp docker
getent group docker