CPC G06F 8/63 (2013.01) [G06F 9/45558 (2013.01); G06F 2009/45562 (2013.01)] | 13 Claims |
1. A system adaptation method, comprising:
acquiring a system list and a software list, wherein the system list comprises a target system that needs to be adapted, and the software list comprises target software that needs to be adapted;
configuring a software installation script corresponding to the target system, and executing a docker pull command to pull a container system mirror image corresponding to the target system;
executing a docker run command to run a virtualized system environment corresponding to the target system according to the container system mirror image; and
executing a software installation instruction in the software installation script to download the target software to a download directory in a container;
wherein the executing a software installation instruction in the software installation script to download the target software to a download directory in a container comprises:
mounting a mapping relationship between a host directory and the download directory in the container, and mounting the software list, the software installation script, and the download directory; and
executing the software installation instruction in the software installation script to download the target software to the download directory in the container.
|