Attach to the container with the following command
#docker container exec -it carbonblack-edr /bin/sh
Then inside the container run the following commands
sh-5.0#chage -M 999 root
and
sh-5.0#chage -M 999 cb
exit the container and try #edr-docker exec cbdiag again