'how to specify -v /var/run/docker.sock in ECS Task Definition - Container Definition in AWS

How do i specify -v /var/run/docker.sock to a container definition in task definition in AWS ECS using EC2 instances?

I need to run docker commands inside a docker container.

The Mount Points section lists no source mount points. enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source