0

I am running CoreOS 835.13.0.

This is the kind of problems I've ran into:

  • man - man: command not found
  • info - info: command not found
  • head -z a.txt - head: invalid option -- 'z'
  • apt-get update - apt-get: command not found

This is frustrating, so I'd like to install a few things to make my life easier.

Sadly, it seems that I simply can't install anything either.

How can I install things on CoreOS? Or better, how can I install apt-get in CoreOS (so that I can install anything else afterwards)?

  • CoreOS is designed to be bare-bones and thus contain just enough functionality to provide a clustering infrastructure, and nothing more. There's no package manager since there shouldn't be a need to install anything; Applications run in containers. Why is it that you need to install additional software on CoreOS? – Emmanuel Rosa Sep 5 '18 at 15:03
  • @EmmanuelRosa - I see. I wanted this because I wanted to set up a cron job executing a script which needed head -z among other things. – Pedro A Sep 5 '18 at 15:58
1

CoreOS is designed to be bare-bones and thus contain just enough functionality to provide a clustering infrastructure, and nothing more. There's no package manager since there shouldn't be a need to install anything; Applications and/or services run in containers.

Since you want to execute a cron job, what you can do is use CoreOS to create either a Docker or rkt container within which you can install cron and run your job.

For example, you can create a Docker container using the Debian image and then use apt-get to install cron. The catch is that Docker containers are designed to run a process directly and typically don't have an init system, so you may have to start the cron daemon explicitly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.