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 :: how to uninstall openjdk in linux 
Shell :: delete all migrations django 
Shell :: how to know the shell version in ubuntu 
Shell :: conda install scipy 
Shell :: xampp the installer requires root privileges 
Shell :: conda install pyaudio 
Shell :: start elasticsearch service ubuntu 
Shell :: zsh command not found python 
Shell :: pod deintegrate 
Shell :: find cudnn version 
Shell :: install socket io client 
Shell :: powershell keep skype active 
Shell :: codeigniter 4 install composer 
Shell :: bash unzip all files 
Shell :: brew update git 
Shell :: npm dev dependencies 
Shell :: dev/kvm device permission denied 
Shell :: how to open bash_profile 
Shell :: command not found: neovim 
Shell :: ifconfig not found ubuntu 20.04 
Shell :: install jupyter notebbok in pip 
Shell :: list all users linux 
Shell :: check codedeploy agent status 
Shell :: upgrade nltk version 
Shell :: gpg: WARNING: unsafe permissions on homedir 
Shell :: git init at wrong folder 
Shell :: homebrew postgres 
Shell :: Your browser or operating system is no longer supported. You may need to install the latest updates to your operating system. 
Shell :: how to make bat file delete itsself 
Shell :: git download all submodules 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =