Closed yakhyadabo closed 4 years ago
What files do you want to edit?
You can cat or more files to inspect contents
In general, yes, this is intentional. Most people using docker images prefer to keep them as thin as possible for production. Some systems take this to an extreme, e.g. it's not uncommon to see go-based software deployed in an absolutely minimal Alpine image with just the binary added.
You have a couple of options:
apt-get update
first because (for similar reasons) the package database is removed from the base image, but then just do something like apt-get install nano
or whatever editor you want. This is a good option if you're not planning to use this regularly and are just trying to determine, e.g., why the arguments you're passing in aren't behaving as expected.
Is it a deliberate choice to not have any editor available ?
What's the proper way to edit a file, for a debugging purpose ?