Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

add group docker compose

version: '2.1'
services:
    my-worker:
        image: workers/data-handler:1.0.2
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
        group_add:
            - 994 #docker group id
        command: run
Comment

add group docker compose

version: '3'
services:
    app:
        image: alpine
        user: "${UID}:${GID}"
Comment

PREVIOUS NEXT
Code Example
Shell :: how to host angular on github 
Shell :: git put commit on different branch 
Shell :: install vercel 
Shell :: how to upgrade julia 
Shell :: bash output to stdout and file 
Shell :: digital ocear error Permission denied (publickey). 
Shell :: changing folder permission in linux 
Shell :: react native typescript template 
Shell :: make a new branch git 
Shell :: remove directory linux 
Shell :: how to install deepin desktop environment on ubuntu 20.10 
Shell :: how to install source plugin gatsby 
Shell :: vim convert tabs to spaces 
Shell :: spotify ubuntu 
Shell :: ubuntu set vi as default editor 
Shell :: gnome set wallpaper command line 
Shell :: delete a deployment in kubernetes 
Shell :: git logline 
Shell :: rename file linux 
Shell :: enviroment variables in firebase 
Shell :: how to make ubuntu use all available disk 
Shell :: copy to clipboard while ssh into another terminal 
Shell :: create requirements file from project add them to poetry dependency 
Shell :: how to delete an issue on github 
Shell :: Adding more changes to your last commit 
Shell :: sublime text 
Shell :: creating new repository 
Shell :: linux vi 
Shell :: sngrep printed lines correctly 
Shell :: Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager. 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =