i'm starting mysql containter
docker run --name l4-mysql -e MYSQL_ROOT_PASSWORD=my-pass -p 3305:3306 -d mysql
after i'm bash him
docker exec -it l4-mysql bash
need to edit mysqld.cnf file, but when i try use nano or vi i have error
bash: nano: command not found
bash: vi: command not found
Other than that, I don't see the actual file in the directory /etc/mysql i have only another dir
bash-4.4# ls
conf.d
I tried to install nano inside bash (in ubuntu itself it is installed and working), I get an error
bash-4.4# apt install nano
bash: apt: command not found
Mysql build the image with oracle linux so to install nano or vim you run the command
microdnf install nano sudo -y
and the location of my.cnf file is answered here the MySQL my.cnf location