Containers in cloud computing provide a logical packaging technique for applications to be isolated from the computing environment in which they actually execute, allowing for efficient sharing of memory, processor, storage, and network resources at the Operating System (OS) level. Since they are so compact, container‐based clouds have recently gained significant popularity. In order to maximize resource usage and minimize energy consumption, the container consolidation technique is widely employed in the cloud environment. This work introduces container consolidation in cloud computing that exploits Fractional Pelican Hawks Optimization (FPHO). In Container as a Service (CaaS) model, containers are placed in the Virtual Machines (VMs), and virtual machines are hosted in Physical Machines (PMs) or servers. The proposed method for container consolidation consists of two modules, namely, the host status module and the consolidation module. In the host status module, the PM's load is predicted using Long Short Term Memory (LSTM) and checked whether the PM is overloaded or underloaded using a threshold. If it is overloaded, the container selection algorithm is performed, and the migration list is also generated. In the consolidation module, the created migration list which is employed for the destination list to be created by an overloaded destination selector. In the same way, the underloaded list is also generated by the underloaded destination selector. Finally, the container and VM migration is carried out by considering the multi‐objectives such as predicted load, migration cost, resource utilization, energy consumption, network, and bandwidth which are optimally selected by the proposed FHPO. Here, FHPO is the combination of Fractional Pelican Optimization (FPO) and Fire Hawk Optimizer (FHO). The designed model achieved the measures with minimum energy consumption, resource utilization, Service Level Agreement (SLA), and Makespan as 0.066, 0.019, 0.054, and 0.066, respectively for setup one.