Method for adapting to Podman calling by improving Docker Api, terminal equipment and storage medium
A technology for storage media and message data, applied in communication between programs, program control design, instruments, etc., can solve the problems of unrealized interfaces, different names of function interfaces, and great differences in calling methods, so as to reduce secondary development Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0021] The embodiment of the present invention provides a Podman calling method by improving DockerApi, such as figure 1 As shown, the following three improvements in the method make it possible to call the docker API to operate the podman container.
[0022] (1) According to the different types of podman and docker servers connected, modify the unix socket path of the dockerapi default connection.
[0023] The default unix socket path started by the docker server is unix: / / / var / run / docker.sock; the default unix socket path started by the podman server is unix: / / / run / podman / podman.sock. In order to be compatible with these two containers, in this embodiment, when calling the dockerapi to initialize, configure the corresponding unix socket path according to different container types, so that the dockerapi can support unix sockets with different paths at the same time.
[0024] (2) When the connected container type is podman, after calling dockerapi to execute the command in th...
Embodiment 2
[0043] The present invention also provides a terminal device adapted to Podman calling by improving DockerApi, including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program The steps in the above method embodiment of Embodiment 1 of the present invention are implemented.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com

