confluentinc / cp-docker-images

[DEPRECATED] Docker images for Confluent Platform.
Apache License 2.0
1.14k stars 704 forks source link

No text editor ? #833

Closed yakhyadabo closed 4 years ago

yakhyadabo commented 4 years ago

Is it a deliberate choice to not have any editor available ?

$ vi
/bin/sh: 37: vi: not found
$ pico
/bin/sh: 38: pico: not found
$ nano
/bin/sh: 39: nano: not found
$ ed
/bin/sh: 40: ed: not found
$ 

What's the proper way to edit a file, for a debugging purpose ?

OneCricketeer commented 4 years ago

What files do you want to edit?

You can cat or more files to inspect contents

ewencp commented 4 years ago

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: