get shell for docker vm on mac

For setting values on the docker vm on your mac you need to get a shell. Elastic has some statements online that don’t work on latest MacOS (14.1.1 + docker desktop 24.0.6). To get a shell you can use this command:

docker run -it --privileged --pid=host debian nsenter -t 1 -m -u -n -i sh