使用 Migrate to Containers,將傳統應用程式從虛擬機器 (VM) 執行個體遷移至在 Google Kubernetes Engine (GKE) 或 Cloud Run 平台上運作的原生容器,藉此達到翻新的目的。您可以從在 VMware 或 Compute Engine 上執行的 VM 遷移工作負載,輕鬆靈活地將現有工作負載容器化。Migrate to Containers 支援 IBM WebSphere、JBoss、Apache、Tomcat、WordPress、Windows IIS 應用程式的現代化,以及以 Linux 為基礎的應用程式容器化。
Migrate to Containers CLI 是一款輕量工具,可在本機機器上使用,用於將工作負載遷移至容器化應用程式元件,以便在 VM 上執行。它會產生可部署至 GKE 或 Cloud Run 的構件。離線模式可讓您在本機上執行以 Linux 為基礎的工作負載遷移作業,並在本機網路上運作,無須在執行階段從網際網路擷取資源。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Migrate to Containers overview\n==============================\n\nUse Migrate to Containers to modernize traditional applications away from\nvirtual machine (VM) instances and into native containers that run on\nGoogle Kubernetes Engine (GKE) or Cloud Run platform. You can migrate\nworkloads from VMs that run on VMware or Compute Engine, giving you the\nflexibility to containerize your existing workloads with ease.\nMigrate to Containers supports modernization of IBM WebSphere, JBoss, Apache,\nTomcat, WordPress, Windows IIS applications, as well as containerisation of\nLinux-based applications.\n\nThe Migrate to Containers CLI is a lightweight tool that you can use on your local\nmachine for migrating your workloads to modernize application components that\nrun on VMs. It generates artifacts that you can deploy to GKE or\nCloud Run. The offline mode lets you perform migrations of your\nLinux-based workloads locally and can work on your local network without pulling\nresources from the internet during runtime.\n\nYou can migrate applications from supported source platforms to the following:\n\n- [Google Kubernetes Engine (GKE)](/kubernetes-engine/docs) and [Autopilot clusters](/kubernetes-engine/docs/concepts/autopilot-overview)\n- [Cloud Run](/run/docs)\n\nAbout Migrate to Containers integration with Cloud Code\n-------------------------------------------------------\n\nThe Migrate to Containers integration with the Cloud Code gives you the ability\nto migrate applications from VMs to containers running on GKE,\ndirectly in Visual Studio, using a Linux machine.\n\n- The extension is integrated with the Migration Center discovery client CLI and Migrate to Containers CLI.\n- It provides a guided replatforming journey, technical fit assessment, and automated artifact generation, which let you run existing applications on GKE.\n\nTo learn more about the Migrate to Containers extension, see\n[Replatform Linux applications to containers](/code/docs/vscode/replatform-apps-to-containers).\n\nAbout GKE and GKE Enterprise clusters\n-------------------------------------\n\nGoogle Kubernetes Engine (GKE) clusters provide secured and\nmanaged Kubernetes services with autoscaling and multi-cluster support.\nGKE lets you deploy, manage, and scale containerized\napplications on Kubernetes, powered by Google Cloud.\n\n- [Autopilot clusters](/kubernetes-engine/docs/concepts/autopilot-overview): this mode of operation in GKE provisions and manages the cluster's underlying infrastructure, including nodes and node pools, giving you an optimized cluster experience. For the benefits of using the simplified Linux service manager, see [Migrating to Autopilot clusters and Cloud Run](/migrate/containers/docs/autopilot-overview).\n\nGKE Enterprise is an application management platform that provides a\nconsistent development and operations experience for cloud and on-premises\nenvironments. GKE Enterprise includes a set of core components, including the\nfollowing:\n\n- [GKE clusters](/anthos/clusters/docs): container orchestration and\n management service for running Kubernetes clusters in both cloud and\n on-premises environments. GKE Enterprise relies on\n GKE clusters on Google Cloud or Google Distributed Cloud\n to manage Kubernetes installations in the environments where you intend to\n deploy your applications.\n\n- [Config Sync](/anthos-config-management/docs/config-sync-overview):\n continuously reconciles your clusters to a central set of configurations that\n are stored in a source of truth, like one or more Git repositories.\n\n- [Policy Controller](/anthos-config-management/docs/concepts/policy-controller):\n defines, automates, and enforces policies across environments to meet your\n organization's security and compliance requirements.\n\n- [Config Controller](/anthos-config-management/docs/concepts/config-controller-overview):\n a hosted service to provision and orchestrate Google Cloud resources.\n\n- [Cloud Service Mesh](/service-mesh/docs): manages and secures traffic between\n services while monitoring, troubleshooting, and improving application\n performance.\n\n- [GKE Enterprise security](/anthos/docs): secures your hybrid and\n multi-cloud deployments by providing consistent controls across your\n environments.\n\nAbout Cloud Run\n---------------\n\nCloud Run is a managed compute platform that lets you run\nstateless containers using web requests or Pub/Sub events.\nThe simplified Linux service manager lets you deploy your migrated container\nworkloads on Cloud Run.\n\n- For the benefits of using the simplified Linux service manager, see [Migrating to Autopilot clusters and Cloud Run](/migrate/containers/docs/services-manager).\n\nWhat's next\n-----------\n\n- Learn about the [benefits of migrating to containers](/migrate/containers/docs/anthos-migrate-benefits)."]]