Skip to main content

2.0 Add New Docker User


*Must be done on each docker node

*PAT= placeholder name 

  1. Escalate to superuser

sudo su -
  1. Add the user

sudo adduser pat (set the password to something easy i.e. password // can also be changed in /etc/passwd)
  1. Give user permission to the docker and sudoers group

sudo usermod -aG docker pat
sudo usermod -aG sudo pat
  1. Connect to user’s account and import user’s github keys

su pat
ssh-import-id-gh [PAT GITHUB USERNAME]
  1. Test whether or not the user can connect to each docker swarm:

ssh pat@[IP Address]
  1. Have user change their password NOT ON ROOT:

passwd (change on each docker node)