It is possible that you do not have the permission to the file yet.
It happened to me after I add myself to docker
group using
sudo gpasswd -a user docker
but not yet logout.
To resolve this, you can either re-login, or use
sg docker "docker <subcommand> ..."
before you logout.
If you are in group docker
in /etc/group
, you should be able to run it without typing password.