Unable to successfully start docker in code build with either a custom image or the Amazon Linux codebuild image aws/codebuild/amazonlinux2-x86_64-standard:3.0
using the buildspec.yaml example
time="2021-01-18T04:27:50.504883817Z" level=error msg="failed to mount overlay: operation not permitted" storage-driver=overlay2
time="2021-01-18T04:27:50.505235383Z" level=info msg="stopping healthcheck following graceful shutdown" module=libcontainerd
time="2021-01-18T04:27:50.505249916Z" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby
failed to start daemon: error initializing graphdriver: driver not supported
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables v1.8.2 (legacy): can't initialize iptables table `nat': Permission denied (you must be root)