I'm trying to install netcat
using cloud-init
.
As soon as I SSH'd to my vm, with all my keys configured correctly via cloud-init
(meaning, it's executing), I try to run netcat
and it doesn't work;
I'm using Container-Optimized OS (cos) as they refer to use it for cloud-init
, and as of research I found cos is based on ChromiumOS kernel;
All I add to my cloud-init file is
packages:
- nano
- netcat
And none of them work.
Is there anything I'm missing to be able to add these packages?
Assuming you want to run tools like nano and netcat interactively in that session, you can use the CoreOS toolbox in Container-Optimized OS to install and run these tools.
$ toolbox apt-get install -y nano netcat
$ toolbox nano
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With