How to run docker on ubuntu without sudo - grant-guo/Ideas GitHub Wiki

create a new group named docker if it doesn't exist

add the user name which you would like to use to run docker to the new docker group

sudo usermod -a -G docker $user_names