Horje
docker sudo how to add user Code Example
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
docker sudo how to add user
FROM alpine:latest
RUN apk --no-cache update \
    && apk --no-cache add sudo
copy run.sh /usr/local/
RUN addgroup -S cassandra && adduser -S cassandra -G cassandra
RUN chown -R cassandra:cassandra /home/cassandra/
RUN echo 'cassandra  ALL=(ALL) /bin/su' >>  /etc/sudoers
USER cassandra
ENTRYPOINT [ "sh","/usr/local/run.sh"]




Shell

Related
loop over array of strings bash Code Example loop over array of strings bash Code Example
Brave on Debian Code Example Brave on Debian Code Example
creating copy of a branch Code Example creating copy of a branch Code Example
install brave on linux Code Example install brave on linux Code Example
copy local docker image to kind cluster Code Example copy local docker image to kind cluster Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
16