Bench is primarily a host-side management CLI. For containerized Frappe/ERPNext deployments, the community standard is the dedicated frappe_docker stack.
frappe_docker
docker run --rm -it frappe/bench:latest bench --version