The invention discloses a method and apparatus for enabling a docker network to penetrate through a two-layer protocol stack in a cloud computing environment. The method comprises the following steps:storing, by a docker network protocol stack, tcp / ip / eth related packet data and corresponding packet header information in a protocol stack cache for transparent transmission pre-created by a physical node, constructing a new data packet according to an address and a size corresponding to the cache, placing the new data packet in a related protocol stack packet processing function to transmit thesame to a cloud host protocol stack, so that the cloud host protocol stack judges whether the received data packet is placed in the protocol stack cache for transparent transmission, and if so, directly sending the received data packet to a physical node protocol stack; and upon receiving the data packet, extracting, by the physical node protocol stack, the address, the size and the correspondingpacket header information in the data packet, extracting the data stored in the protocol stack cache for transparent transmission according to the extracted address and the size, transmitting the data to a function corresponding to tcp, ip and eth layers to perform packet encapsulation processing, and sending the data to a physical network card for transmission. The number of data packets of thenetwork protocol stacks in the docker and a cloud host can be reduced, and the cpu usage rate and the data packet forwarding speed are reduced.