[英]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 工具箱在隔离容器中安装和运行调试和管理工具。
https://cloud.google.com/container-optimized-os/docs/how-to/toolbox You can use toolbox to install the package https://cloud.google.com/container-optimized-os/docs/how-to/toolbox您可以使用工具箱安装 package
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.