Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

add group docker compose

#!/bin/bash

DOCKER_GROUP=$(getent group docker | cut -d: -f3)
docker run 
    -v /var/run/docker.sock:/var/run/docker.sock 
    --group-add $DOCKER_GROUP 
    workers/data-handler:1.0.2
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #group #docker #compose
ADD COMMENT
Topic
Name
4+2 =