Patent attributes
This application discloses a container access method and apparatus. The method includes: receiving a container access request, which is used to request to access a target container; selecting a driver instance corresponding to the target container from multiple currently-running driver instances, where different driver instances in the multiple driver instances are used to drive different types of containers, and the multiple driver instances are managed by using a same program; and sending the container access request to the selected driver instance. In this solution, one program manages driver instances that are used to drive different types of containers, so that a user can access multiple containers of different types by using one program. This reduces running overheads of a program that manages multiple driver instances in a container engine.