As the customer base of cloud computing services continues to grow, the demand for providing cloud resources in an economic manner has become increasingly important. To incorporate multiple clouds, JointCloud has been proposed for sharing cloud services. However, efficient communication among clouds is essential to enable resource sharing in JointCloud, which poses a critical challenge. The existing congestion control mechanisms for JointCloud have been founded to be inadequate in sharing network resources effectively and fairly, resulting in performance shortcomings. The maximum achievable transmission rate is limited to only 50% of the bandwidth, and the minimum and maximum transmission rates for different clouds in JointCloud may have a difference of up to ten times in magnitude.We propose a novel distributed congestion control mechanism for the JointCloud environment, which leverages ideas from rich literature on distributed online learning. The proposed mechanism operates in a distributed manner, with an aggregative variable representing the network condition integrated into each sender’s utility function. Our theoretical analyses establish that the proposed mechanism achieves a unique Nash equilibrium, enabling fair resource allocation among all senders. Furthermore, our simulation evaluations demonstrate that the proposed mechanism outperforms the existing congestion control mechanism in JointCloud environment by achieving a 20% higher throughput in the presence of at least 1% random loss, a 50% higher throughput for short TCP flows, and a throughput ratio of 1 when sharing bandwidth with conventional mechanisms, which indicates a perfect TCP friendliness towards other mechanisms. In summary, our proposed congestion control mechanism is the first to work in a distributed manner, which improves the efficiency and fairness of the congestion control mechanism. The proposed mechanism has the potential to significantly enhance the performance of communication among clouds, making a noteworthy contribution to cloud resource sharing.