Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

run docker as non root

$ sudo usermod -aG docker [non-root user]
Comment

setting docker as a non root user

##########################################
# Dockerfile to change from root to 
# non-root privilege
###########################################
# Base image is CentOS 7
FROM Centos:7
# Add a new user "john" with user id 8877
RUN useradd -u 8877 john
# Change to non-root privilege
USER john
Comment

non-docker root

sudo setfacl -m user:$USER:rw /var/run/docker.sock
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install gatsby gatsby-plugin-manifest 
Shell :: renaming heroku remotes 
Shell :: history terminal commad getting limited 
Shell :: mongodb clone database 
Shell :: bash echo multiline 
Shell :: how to run appimage on linux mint 
Shell :: mac os install brew 
Shell :: brew in mac 
Shell :: How to remove local (untracked) files from the current Git working tree 
Shell :: git push origin master not working 
Shell :: brave install in linux 
Shell :: jest install 
Shell :: set git origin url 
Shell :: extract tar.xz linux 
Shell :: git go to previous branch 
Shell :: how to figure out ubuntu partition 
Shell :: How do I sync local and remote branches? 
Shell :: nohup linux output 
Shell :: Module enzyme-to-json/serializer in the snapshotSerializers option was not found. <rootDir is 
Shell :: nuxt init 
Shell :: linux how to free memory 
Shell :: add sudo user ubuntu 18 
Shell :: windows check installed fonts 
Shell :: bash quotes 
Shell :: Error: `@cucumber/cucumber` module not resolvable. Must be locally installed. 
Shell :: how to download youtube videos in ubuntu 20.04 
Shell :: sum column bash 
Shell :: home brew for windows 10 
Shell :: gunicorn windows 
Shell :: git create and checkout branch 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =