Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker to sudoers

# my case solution
sudo setfacl -m user:$USER:rw /var/run/docker.sock

#other solution
sudo usermod -aG docker $USER

#an other solution
sudo groupadd docker
sudo gpasswd -a $USER docker
docker run hello-world
Comment

how to run docker without sudo

# Creates docker group
sudo groupadd docker

# Add your user to the docker group
sudo usermod -aG docker $USER

# Log out and log back in so that your group membership is re-evaluated
# GNOME example
gnome-session-quit
Comment

No sudo with Docker

# No sudo with docker
> sudo groupadd docker
> sudo gpasswd -a username docker
> sudo service docker restart 
Comment

how to run docker not with sudo

# what worked for my case
sudo setfacl -m user:$USER:rw /var/run/docker.sock
Comment

PREVIOUS NEXT
Code Example
Shell :: windows services list 
Shell :: wifi adapter not detected ubuntu 
Shell :: bash: bin/activate: No such file or directory 
Shell :: wget command not found mac 
Shell :: bash open current directory in file explorer 
Shell :: powershell parameter mandatory 
Shell :: how to install tar.gz in ubuntu 
Shell :: adb command to change screen refresh rate 
Shell :: linux search for files larger than 
Shell :: push project to github 
Shell :: git add commit push one command 
Shell :: bower 
Shell :: docker postgresql restore database 
Shell :: how to go to a running docker container 
Shell :: How to create a new repository on the command line. 
Shell :: valet: command not found 
Shell :: ubuntu create archive split 
Shell :: screen recorder ubuntu 
Shell :: install mongodb on m1 
Shell :: pm2 ressurect 
Shell :: git init repo 
Shell :: java check java version 
Shell :: install flask on ubuntu 
Shell :: kali sources.list 
Shell :: brew stop redis 
Shell :: show all remote branches git 
Shell :: flutter change Target file from lib/main.dart to another 
Shell :: install hugo on ubuntu 
Shell :: bash get file name 
Shell :: sed recursive replace 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =