Drone ECR Plugin cannot connect to docker daemon

Hello,

I have a drone server and runner running on an EC2 machine, seems to be working fine until the publish to ECR step. I keep running into the error in the screenshot below:

Here is the code for the publish step in my drone.yml config. Any help is much appreciated!

- name: publish
  image: plugins/ecr
  pull: if-not-exists
  priveleged: true
  volumes:
  - name: build
    path: /root/.build
  settings:
    access_key: <ACCESS_KEY>
    secret_key: <SECRET_KEY>
    repo: my-repo
    dockerfile: dist/Dockerfile
    region: us-west-1
    registry: <ECR_REGISTRY>
    tags:
      - ${DRONE_BUILD_NUMBER}
      - latest

@Samuel ,

Could you please review below
http://discuss.harness.io/t/cannot-connect-to-the-docker-daemon-at-unix-var-run-docker-sock-is-the-docker-daemon-running/4071

Regards,
Harness Support