binary install in google container optimized OS

5.7k views Asked by At

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.

3

There are 3 answers

4
John Hanley On BEST ANSWER

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

0
laylaylom On

You can specify a startup script through the metadata server. The script would be run at boot time.

0
TRUONG NGUYEN On

https://cloud.google.com/container-optimized-os/docs/how-to/toolbox You can use toolbox to install the package