How can we run ''docker node ls'' command with service user ?
you need to create a service user like ansible with command -
useradd {{remote_user}}
Then, give docker group permission to it (run the below command using root)
sudo usermod -aG docker {{remote_user}}
you need to create a service user like ansible with command -
useradd {{remote_user}}
Then, give docker group permission to it (run the below command using root)
sudo usermod -aG docker {{remote_user}}