If you want to confirm it, you can run the following SQL:
SHOW VARIABLES LIKE "max_connections";
To run SQL on a Docker container, follow these notes:
I would see how you go with those changes before doing anything further. Tuning is about making small changes, and then observing the result. If you make lots of changes at the same time, and then performance drops, you won’t know which caused the issue.