What is the command to get the docker container id from the container name?
I tried sudo docker container stats, and it will give out Container ID along with details of memory usage and Name, etc. If you want to stop viewing the process, do Ctrl+C. I hope you find it useful.
sudo docker container stats
Ctrl+C