A container for a medical liquid, comprising a connection piece via which a medical liquid can be pumped into or out of the container, an attachment part which can be attached to the connection piece and connected to a pump device to pump a medical liquid or out of the container, and a sealing element for sealing a passage between the connection piece and the attachment part. The sealing element has a slot opening which is closed against a liquid flow when the pump device is not attached to the attachment part and which is open when the pump device is attached to the attachment part such that a medical liquid can be pumped through the slot opening. The attachment part has a connection portion with an opening into which the connection piece can be inserted along an insertion direction in order to connect to the attachment part.