A system with a gantry of a computed tomography device and a docking station and method are for cooling a component of the gantry. In an embodiment, the system includes a gantry of a computed tomography device, the gantry including a chassis and a heat store; and a docking station. The gantry is movable via the chassis relative to the docking station. The gantry and the docking station are detachably connectable to one another such that a detachable coolant-exchange connection for exchanging a coolant and/or a detachable heat-conduction connection for heat conduction is formed between the heat store and the docking station.