This article presents a formal specification in Z for the Terminal Container Control System, including initialization of variables and states, operations for entering new container terminals, accepting deliveries and pickups, leaving delivery queues, unloading ships, and finding terminal, ship, and company accounts. The Z notation is used to define the system's variables, operations, and states, and the article includes a bibliography of related research.