I created a docker-compose file and run it. It works fine but when I get inside the containers no command works. even apt-get or apt, it gives only command not found error. I dont know why?
in mac os intel.
docker version: 20.10.13
dCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a34e34516bdf debezium/kafka "/docker-entrypoint.…" 16 hours ago Up 16 hours 0.0.0.0:9092->9092/tcp docker-kafka-1
1500945fd17c debezium/connect "/docker-entrypoint.…" 16 hours ago Up 16 hours 0.0.0.0:5005->5005/tcp, 0.0.0.0:8083->8083/tcp, 9092/tcp docker-connect-1
d475c9993513 debezium/zookeeper "/docker-entrypoint.…" 16 hours ago Up 16 hours 0.0.0.0:2181->2181/tcp, 0.0.0.0:2888->2888/tcp, 0.0.0.0:3888->3888/tcp docker-zookeeper-1
58896bc0547b debezium/postgres:11 "docker-entrypoint.s…" 20 hours ago Up 16 hours 0.0.0.0:5432->5432/tcp postgresql
xxx@ip:docker % docker exec -it a34e34516bdf bash
[kafka@a34e34516bdf ~]$ apt-get update
bash: apt-get: command not found
[kafka@a34e34516bdf ~]$ apt update
bash: apt: command not found
[kafka@a34e34516bdf ~]$ vim
bash: vim: command not found
[kafka@a34e34516bdf ~]$ vi
bash: vi: command not found
[kafka@a34e34516bdf ~]$
[kafka@a34e34516bdf config]$ microdnf
error: Failed to create: /var/cache/yum/metadata
[kafka@a34e34516bdf config]$