Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
O Container-Optimized OS do Google é uma imagem de sistema operacional para suas VMs do Compute Engine otimizada para executar contêineres.
O Container-Optimized OS é mantido pelo Google e é baseado no projeto de código aberto Chromium OS. Com o Container-Optimized OS, você pode abrir seus
contêineres no Google Cloud Platform com rapidez, eficiência e segurança.
Recursos e benefícios
O Container-Optimized OS oferece os seguintes benefícios:
Executar contêineres prontos para uso: as instâncias do Container-Optimized OS são pré-instaladas com o ambiente de execução do Docker e do containerd e o cloud-init. Com uma
instância do Container-Optimized OS, abra o contêiner ao mesmo tempo em que cria a VM, sem a necessidade de configuração no host.
Menor superfície de ataque: o Container-Optimized OS tem uma projeção menor, o que reduz a superfície de ataque em potencial da sua instância.
Bloqueado por padrão: as instâncias do Container-Optimized OS incluem um firewall bloqueado e outras configurações de segurança por padrão.
Atualizações automáticas: as instâncias do Container-Optimized OS são configuradas para fazer o download de atualizações semanais automaticamente em segundo plano. Para usar as versões mais recentes, só é preciso reinicializar a instância.
Limitações
O Container-Optimized OS é compatível de maneira limitada ou não é compatível com alguns dos recursos padrão de outros sistemas operacionais que você conhece:
O Container-Optimized OS não inclui um gerenciador de pacotes. Por isso, não é possível instalar pacotes de software diretamente em uma instância. No entanto, você pode usar a caixa de ferramentas CoreOS para instalar e executar ferramentas de depuração e administração em um contêiner isolado.
O Container-Optimized OS não é compatível com aplicativos que não estejam em contêiner.
O kernel do Container-Optimized OS é bloqueado, e você não poderá instalar módulos ou drivers de kernel de terceiros.
O Container-Optimized OS não é compatível com ambientes fora do Google Cloud Platform.
Como usar o Container-Optimized OS
O Container-Optimized OS é a imagem do SO de nó padrão no Kubernetes Engine e outras implantações do Kubernetes no Google Cloud Platform. Consulte o Guia de início rápido do Kubernetes Engine para mais informações sobre o uso do Container-Optimized OS com o Kubernetes Engine.
Você também pode usar o Container-Optimized OS para abrir rapidamente um contêiner
em uma instância do Compute Engine com configuração mínima. Para mais informações, consulte Como criar e configurar instâncias.
Você pode executar ferramentas como ping, a CLI do Google Cloud, pstree, htop,
emacs e mais usando o utilitário caixa de ferramentas CoreOS, que está pré-instalado no
Container-Optimized OS em /usr/bin/toolbox. Consulte Como depurar com a caixa de ferramentas para
mais informações.
Casos de uso para o Container-Optimized OS
O Container-Optimized OS pode ser usado para executar a maioria dos contêineres. Você deve considerar o uso do Container-Optimized OS como sistema operacional da sua instância do Compute Engine caso precise de:
Suporte a contêineres ou Kubernetes com trabalho de configuração mínimo.
Sistema operacional com projeção pequena e com segurança reforçada para contêineres.
Sistema operacional testado e aprovado para a execução do Kubernetes nas suas instâncias do Compute Engine.
O Container-Optimized OS pode não ser a escolha ideal para você nos seguintes casos:
Seu aplicativo não está em um contêiner ou está em contêiner dependente de módulos do kernel, drivers e outros pacotes adicionais que não estão disponíveis no Container-Optimized OS.
Você precisa de suporte ao cliente profissional de um provedor do Linux (Canonical, Core OS, RedHat, SUSE etc.).
Você quer que sua imagem e seu aplicativo de SO sejam totalmente compatíveis fora do
Google Cloud.
Consulte Contêineres no Google Cloud para saber mais sobre
outros sistemas operacionais que você pode usar para
executar aplicativos conteinerizados no Google Cloud. O Compute Engine
fornece imagens para outros sistemas operacionais conhecidos, inclusive imagens
otimizadas para contêineres.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-19 UTC."],[[["\u003cp\u003eContainer-Optimized OS is a Google-maintained operating system image for Compute Engine VMs, specifically designed for running containers efficiently and securely.\u003c/p\u003e\n"],["\u003cp\u003eThis OS comes pre-installed with Docker, containerd runtimes, and \u003ccode\u003ecloud-init\u003c/code\u003e, allowing users to deploy containers concurrently with VM creation, without needing additional on-host configurations.\u003c/p\u003e\n"],["\u003cp\u003eContainer-Optimized OS is security-focused, featuring a smaller attack surface, a locked-down firewall, and weekly automatic background updates.\u003c/p\u003e\n"],["\u003cp\u003eWhile optimized for containers and Kubernetes, Container-Optimized OS has limitations, including the absence of a package manager, no support for non-containerized applications, and the inability to install third-party kernel modules.\u003c/p\u003e\n"],["\u003cp\u003eContainer-Optimized OS is the default OS for Kubernetes Engine and other deployments on the Google Cloud platform, but may not be suitable for applications that require custom kernel modules, non-containerized applications, or professional Linux provider support.\u003c/p\u003e\n"]]],[],null,["# Container-Optimized OS Overview\n\nContainer-Optimized OS from Google is an operating system image for your\n[Compute Engine](/compute) VMs that is optimized for running containers.\nContainer-Optimized OS is maintained by Google and based on the open source\nChromium OS project. With Container-Optimized OS, you can bring up your\ncontainers on Google Cloud Platform quickly, efficiently, and securely.\n\nFeatures and Benefits\n---------------------\n\nContainer-Optimized OS provides the following benefits:\n\n- **Run Containers Out of the Box** : Container-Optimized OS instances come pre-installed with the Docker and containerd runtimes and `cloud-init`. With a Container-Optimized OS instance, you can bring up your container at the same time you create your VM, with no on-host setup required.\n- **Smaller attack surface**: Container-Optimized OS has a smaller footprint, reducing your instance's potential attack surface.\n- **Locked-down by default**: Container-Optimized OS instances include a locked-down firewall and other security settings by default.\n- **Automatic Updates**: Container-Optimized OS instances are configured to automatically download weekly updates in the background; only a reboot is necessary to use the latest updates.\n\nLimitations\n-----------\n\nContainer-Optimized OS has limited or no support for some of the common\nfeatures you may be familiar with on other operating systems:\n\n- Container-Optimized OS does not include a package manager; as such, you'll be unable to install software packages directly on an instance. However, you can use [CoreOS toolbox](/container-optimized-os/docs/how-to/toolbox) to install and run debugging and admin tools in an isolated container.\n- Container-Optimized OS does not support execution of non-containerized applications.\n- The Container-Optimized OS kernel is locked down; you'll be unable to install third-party kernel modules or drivers.\n- Container-Optimized OS is not supported outside of the Google Cloud Platform environment.\n\nUsing Container-Optimized OS\n----------------------------\n\nContainer-Optimized OS is the default node OS Image in [Kubernetes Engine](/kubernetes-engine) and\nother [Kubernetes](https://kubernetes.io/) deployments on Google Cloud Platform. See the [Kubernetes\nEngine Quickstart](/kubernetes-engine/docs/deploy-app-cluster) for more information on using Container-Optimized OS with\nKubernetes Engine.\n\nYou can also use Container-Optimized OS to quickly bring up a container\non a Compute Engine instance with minimal setup. For more information, see\n[Creating and Configuring Instances](/container-optimized-os/docs/how-to/create-configure-instance).\n\nYou can run tools like `ping`, the Google Cloud CLI, `pstree`, `htop`,\n`emacs` and more using the [CoreOS toolbox](/container-optimized-os/docs/how-to/toolbox) utility, which is pre-installed in\nContainer-Optimized OS at `/usr/bin/toolbox`. See [Debugging with toolbox](/container-optimized-os/docs/how-to/toolbox) for\nmore information.\n\nUse cases for Container-Optimized OS\n------------------------------------\n\nContainer-Optimized OS can be used to run most containers. You should\nconsider using Container-Optimized OS as the operating system for your\nCompute Engine instance if you have the following needs:\n\n- You need support for containers or Kubernetes with minimal setup.\n- You need an operating system that has a small footprint and is [security\n hardened](/container-optimized-os/docs/concepts/security) for containers.\n- You need an operating system that is tested and verified for running Kubernetes on your Compute Engine instances.\n\nContainer-Optimized OS may not be the right choice for you in the following\ncases:\n\n- Your application is not containerized or your containerized application depends on kernel modules, drivers and other additional packages that are not available in Container-Optimized OS.\n- You need professional customer support from a Linux provider (Canonical, Core OS, Redhat, SUSE, etc).\n- You want your image and OS application to be fully supported outside Google Cloud.\n\nSee [Containers on Google Cloud](/compute/docs/containers) to learn about\nother operating systems you can use to\nrun containerized applications on Google Cloud. Compute Engine\n[provides images](/compute/docs/images) for other popular operating systems, including images that are\n[optimized for containers](/compute/docs/containers#container_images)."]]