2.0 Adding Users to Docker Group
*Must be done on each docker node if there's more than one
*Any confusion on command syntax/structure can be clarified in Legend
-
Login to the docker node
-
Add the user
*Set the password to something easy i.e. password // can also be changed using the 'passwd' command
sudo adduser [USER]
-
Give user permission to the docker and sudoers group
sudo usermod -aG docker [USER]
sudo usermod -aG sudo [USER]
-
Connect to user’s account and import user’s Github keys
su [USER]
ssh-import-id-gh [GITHUB USERNAME]
-
Test whether or not the user can connect to each docker swarm:
ssh [USER]@[IP ADDRESS]
-
Have user change their password NOT ON ROOT on each docker node created:
passwd
Last Updated: 2/22/2025
Contributors: Lilian, Vivian