You might want to turn off apparmor and check if it works without. If this is the case, you will need to figure out how to permit access for the file - I never had to tinker around with apparmor on Ubuntu.
sudo systemctl stop apparmor
#run your test, then restart apparmor again
sudo systemctl start apparmor
By any chance are you running the Docker package from Snap?