Hi hamza ali,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here
Based on your query
Inside the AKS docker in docker we don't have option support ended
If you want to build in own infra level another alternative option, you can use VM or physical machine as self-hosted agent in pipeline at that point own infrastructure will be having in our local machine or azure VM or else give it try might be possible in this way
you use dedicated use node as VM in that can you try use docker installed in that VM use self-hosted agent
If found you this suggestion is informative, please give it an upvote