I created a linux golden image for aws workspaces with docker installed on it. I provisioned the workspace bundle to an AD user.
docker version gave -
Client:
Version: 19.03.13-ce
API version: 1.40
Go version: go1.13.15
Git commit: 4484c46
Built: Mon Oct 12 18:51:20 2020
OS/Arch: linux/amd64
Experimental: fals
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/version: dial unix /var/run/docker.sock: connect: permission denied
how can I add the provisioned user to docker group? I have tried sudo usermod -aG docker username, but aws workspaces gives an error saying - "usermod: user "username" does not exist.
Please help