Search code examples
google-chromegoogle-cloud-platformgoogle-container-optimized-os

binary install in google container optimized OS


As it is the Linux version of OS, I tried firing, hoping that would work

apt-get install jq

But it says apt-get: command not found.

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.


Solution

  • 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; 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.

    Container-Optimized OS Overview