Sometimes we need Docker containers to run inside another container. This is known as Docker-in-Docker or DinD, and is getting more usual on CI/CD pipelines and deploy workflows. In order to achieve this output taking in consideration security and scalability issues, we had to dispose sysbox runtime on EC2 instances.
This is just a quick reference for a complete article we had published with AWS Engineers on a complete solution to customize an AMI with sysbox and all ECS dependencies. Enjoy!