Issue
When following the AWS guide for installing Docker (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html), I'm stuck on step 8 docker info
. Permission should have been added in step 6 so that ec2-user
can run this without sudo
, but it can't.
Error
$ docker info
-bash: /usr/bin/docker: Permission denied
Troubleshooting
I have restarted the instance, logged out and in, and stopped and started docker.
id ec2-user
returns uid=1000(ec2-user) gid=1000(ec2-user) groups=1000(ec2-user),4(adm),10(wheel),190(systemd-journal),992(docker)
I've installed docker-compose
and tried to change permissions in other ways:
sudo usermod -a -G sudo ec2-user
sudo setfacl -R -m user:ec2-user:rw /usr/bin/docker
Desired Behaviour
I'd like the permissions to be fixed, whether that means reinstalling Docker or just amending permissions.