SUMMARY
Resource allocation in the cloud is becoming more complicated and challenging due to the rising necessities of cloud services. Effective management of virtual resources in the cloud is of large significance since it has a great impact on both the operational cost and scalability of the cloud environment. Nowadays, containers are becoming more popular in this regard due to their characteristics like reduced overhead and portability. Conventional resource allocation schemes are usually modeled for the migration and allocation of virtual machines (VM), as a result; the question may arise on, “how these strategies can be adapted for the management of a containerized cloud”. This work evolves the solution to this issue by introducing a new fitness oriented moth flame algorithm (F‐MFA) for optimizing the allocation of containers. Further in this work, the optimal allocation relies on certain constraints like balanced cluster use, system failure, total network distance (TND), security and threshold distance, and credibility factor as well. In the end, the supremacy of the presented model is computed to the conventional models in terms of cost and convergence analysis.