How can you run docker command using a non-root user ?
Yes, u can create a user and give it root user user permissions in path : /etc/sudeors files and add the same user in Docker Group using sudo usermod -aG docker ${USER} this command then u can run all docker related commands.
Sudo docker run -it nonrootuser demo
No, good try but looks like what Balaji told that is correct
Yes, u can create a user and give it root user user permissions in path : /etc/sudeors files and add the same user in Docker Group using sudo usermod -aG docker ${USER} this command then u can run all docker related commands.
Sudo docker run -it nonrootuser demo