The invention discloses a security upgrading method and
system for
password equipment based on a container technology, and relates to the technical field of
information security. According to the method, the configuration file and the key file are separated from the container
mirror image and stored in the persistent data volume, so that the risks of loss, damage and leakage of the configuration or the key caused by
mirror image replacement in the upgrading process are thoroughly avoided, the security of the upgrading process is greatly improved, and due to the fact that the containers of the new version and the old version share the same persistent data, the security of the upgrading process is greatly improved. The
rollback operation only needs to switch the running container instance without recovering or migrating data, and the whole process can be automatically executed and can be completed in seconds, so that the fault
recovery time is remarkably shortened, the service continuity is ensured, the container technology ensures the consistency of new version
software, the upgrading success rate and the
software running stability are improved, and the upgrading efficiency is improved. And the upgrading process is standardized into
mirror image pulling, container starting and health checking, and the container is switched if the upgrading process fails, so that automatic and batch deployment is easy.