简体   繁体   English

谷歌容器优化操作系统中的二进制安装

[英]binary install in google container optimized OS

As it is the Linux version of OS, I tried firing, hoping that would work因为它是 Linux 版本的操作系统,我试过开火,希望能奏效

apt-get install jq

But it says apt-get: command not found.但它说 apt-get:找不到命令。

How I can install new binaries as I wanted to add some extra logic in the startup script which required few extra libs to be installed first.我如何安装新的二进制文件,因为我想在启动脚本中添加一些额外的逻辑,这需要首先安装一些额外的库。

Please correct me if I am doing anything wrong.如果我做错了什么,请纠正我。

Container OS is locked down.容器操作系统被锁定。 You are prohibited from installing programs.您被禁止安装程序。 Create a container and run the command in the container.创建一个容器,在容器中运行命令。

Container-Optimized OS does not include a package manager; Container-Optimized OS 不包含 package 管理器; as such, you'll be unable to install software packages directly on an instance.因此,您将无法直接在实例上安装软件包。 However, you can use CoreOS toolbox to install and run debugging and admin tools in an isolated container.但是,您可以使用 CoreOS 工具箱在隔离容器中安装和运行调试和管理工具。

Container-Optimized OS Overview 容器优化操作系统概述

You can specify a startup script through the metadata server.您可以通过元数据服务器指定启动脚本 The script would be run at boot time.该脚本将在启动时运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google Cloud Logging 不解析来自 Container Optimized OS 的 JSON 消息 - Google Cloud Logging doesn't parse JSON message from Container Optimized OS 如何升级 Container-Optimized OS (COS) 虚拟机? - How to upgrade Container-Optimized OS (COS) virtual machine? 如何从 GCE 实例中的 Container-optimized OS 获取启动脚本日志? - How do I get startup-script logs from Container-optimized OS in a GCE instance? 容器操作系统元数据“用户数据”元数据 - Container OS metadata `user-data` metadata 在 Google Container Engine 中公开两个端口 - Exposing two ports in Google Container Engine 谷歌云:Artifact Registry 与 Container Registry - Google Cloud: Artifact Registry vs Container Registry 在谷歌云实例中安装 WordPress 主题 - Install WordPress themes in a Google cloud instance 有没有办法安装 Google Cloud Shell Theia 扩展? - Is there a way to install Google Cloud Shell Theia extensions? 如何在Google Cloud Platform中安装Google AI Platform中的Spark依赖 - How to install Spark dependencies in Google AI Platform in Google Cloud Platform QuerySnapshot 优化了 firebase - QuerySnapshot was optimized out firebase
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM