Adding a user to the docker
group
At my work, after I had installed Docker I
added myself to the docker
group as follows:
sudo usermod -aG docker ${USER}
This makes is possible to run docker
without sudo
. Next, I did:
su - ${USER}
To get a new shell in which I had been added to the docker
group.
I verified this using:
groups
And indeed as expected the group docker
was listed.