I can't unlock my admin account

I can’t unlock my admin account, grafana is in docker,

I ran the command
docker exec -ti <ID_CONTAINER> grafana-cli admin reset-admin-password /usr/share/grafana <PASSWORD>

but I still can’t get into grafana from the admin user, when I enter a new password I get the following error

Invalid username or password

logs docker container

logger=cleanup t=2024-07-24T12:03:37.478342326Z level=info msg="Completed cleanup jobs" duration=2.670197ms
logger=plugins.update.checker t=2024-07-24T12:03:37.920177494Z level=info msg="Update check succeeded" duration=231.892901ms
logger=cleanup t=2024-07-24T12:13:37.478110439Z level=info msg="Completed cleanup jobs" duration=2.802167ms
logger=plugins.update.checker t=2024-07-24T12:13:37.943427629Z level=info msg="Update check succeeded" duration=254.476532ms
logger=cleanup t=2024-07-24T12:23:37.478416316Z level=info msg="Completed cleanup jobs" duration=2.549587ms
logger=plugins.update.checker t=2024-07-24T12:23:37.889471569Z level=info msg="Update check succeeded" duration=200.655367ms
logger=infra.usagestats t=2024-07-24T12:25:29.475618391Z level=info msg="Usage stats are ready to report"
logger=cleanup t=2024-07-24T12:33:37.4775393Z level=info msg="Completed cleanup jobs" duration=2.537402ms
logger=plugins.update.checker t=2024-07-24T12:33:37.908883571Z level=info msg="Update check succeeded" duration=220.349286ms
logger=cleanup t=2024-07-24T12:43:37.478106365Z level=info msg="Completed cleanup jobs" duration=2.694193ms
logger=plugins.update.checker t=2024-07-24T12:43:37.899065545Z level=info msg="Update check succeeded" duration=210.195356ms
logger=authn.service t=2024-07-24T12:49:41.197982491Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
logger=context userId=0 orgId=0 uname= t=2024-07-24T12:49:41.198233544Z level=info msg="Request Completed" method=GET path=/ status=302 remote_addr=192.168.0.2 time_ms=0 duration=914.62µs size=29 referer= handler=/ status_source=server
logger=authn.service t=2024-07-24T12:49:41.286491588Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
logger=authn.service t=2024-07-24T12:49:55.231915124Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
logger=authn.service t=2024-07-24T12:49:55.244112217Z level=info msg="Failed to authenticate request" client=auth.client.form error="[password-auth.failed] failed to authenticate identity: [password-auth.invalid] invalid password"
logger=context userId=0 orgId=0 uname= t=2024-07-24T12:49:55.244176746Z level=info msg=Unauthorized error="[password-auth.failed] failed to authenticate identity: [password-auth.invalid] invalid password" remote_addr=192.168.0.2 traceID=
logger=context userId=0 orgId=0 uname= t=2024-07-24T12:49:55.244212861Z level=info msg="Request Completed" method=POST path=/login status=401 remote_addr=192.168.0.2 time_ms=12 duration=12.81471ms size=107 referer=http://192.168.100.15:3000/login handler=/login status_source=server
logger=cleanup t=2024-07-24T12:53:37.478353668Z level=info msg="Completed cleanup jobs" duration=2.794517ms
logger=plugins.update.checker t=2024-07-24T12:53:37.928500124Z level=info msg="Update check succeeded" duration=240.384281ms
logger=infra.usagestats t=2024-07-24T12:55:29.475905986Z level=info msg="Usage stats are ready to report"
logger=cleanup t=2024-07-24T13:03:37.477579829Z level=info msg="Completed cleanup jobs" duration=2.619864ms
logger=plugins.update.checker t=2024-07-24T13:03:38.137994861Z level=info msg="Update check succeeded" duration=449.453722ms
logger=authn.service t=2024-07-24T13:13:21.795829765Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
logger=context userId=0 orgId=0 uname= t=2024-07-24T13:13:21.795918108Z level=info msg="Request Completed" method=GET path=/ status=302 remote_addr=192.168.0.2 time_ms=0 duration=642.788µs size=29 referer= handler=/ status_source=server
logger=authn.service t=2024-07-24T13:13:21.875536236Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
logger=authn.service t=2024-07-24T13:13:28.610486066Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
logger=authn.service t=2024-07-24T13:13:28.622361275Z level=info msg="Failed to authenticate request" client=auth.client.form error="[password-auth.failed] failed to authenticate identity: [password-auth.invalid] invalid password"
logger=context userId=0 orgId=0 uname= t=2024-07-24T13:13:28.622438669Z level=info msg=Unauthorized error="[password-auth.failed] failed to authenticate identity: [password-auth.invalid] invalid password" remote_addr=192.168.0.2 traceID=
logger=context userId=0 orgId=0 uname= t=2024-07-24T13:13:28.622508815Z level=info msg="Request Completed" method=POST path=/login status=401 remote_addr=192.168.0.2 time_ms=12 duration=12.482285ms size=107 referer=http://192.168.100.15:3000/login handler=/login status_source=server
logger=cleanup t=2024-07-24T13:13:37.477976748Z level=info msg="Completed cleanup jobs" duration=2.74118ms
logger=plugins.update.checker t=2024-07-24T13:13:37.909572304Z level=info msg="Update check succeeded" duration=220.825382ms
logger=authn.service t=2024-07-24T13:13:59.601062306Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
logger=authn.service t=2024-07-24T13:13:59.612733852Z level=info msg="Failed to authenticate request" client=auth.client.form error="[password-auth.failed] failed to authenticate identity: [password-auth.invalid] invalid password"
logger=context userId=0 orgId=0 uname= t=2024-07-24T13:13:59.612799843Z level=info msg=Unauthorized error="[password-auth.failed] failed to authenticate identity: [password-auth.invalid] invalid password" remote_addr=192.168.0.2 traceID=
logger=context userId=0 orgId=0 uname= t=2024-07-24T13:13:59.612832623Z level=info msg="Request Completed" method=POST path=/login status=401 remote_addr=192.168.0.2 time_ms=12 duration=12.259829ms size=107 referer=http://192.168.100.15:3000/login handler=/login status_source=server
logger=authn.service t=2024-07-24T13:14:02.928902515Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
logger=authn.service t=2024-07-24T13:14:02.940499576Z level=info msg="Failed to authenticate request" client=auth.client.form error="[password-auth.failed] failed to authenticate identity: [password-auth.invalid] invalid password"
logger=context userId=0 orgId=0 uname= t=2024-07-24T13:14:02.940566972Z level=info msg=Unauthorized error="[password-auth.failed] failed to authenticate identity: [password-auth.invalid] invalid password" remote_addr=192.168.0.2 traceID=
logger=context userId=0 orgId=0 uname= t=2024-07-24T13:14:02.940607494Z level=info msg="Request Completed" method=POST path=/login status=401 remote_addr=192.168.0.2 time_ms=12 duration=12.200761ms size=107 referer=http://192.168.100.15:3000/login handler=/login status_source=server

try this:

docker exec -ti <ID_CONTAINER> grafana-cli admin reset-admin-password --homepath /usr/share/grafana PASSWORD

returns an error

docker exec -ti <ID_CONTAINER> grafana-cli admin reset-admin-password --homepath /usr/share/grafana PASSWORD
Deprecation warning: The standalone 'grafana-cli' program is deprecated and will be removed in the future. Please update all uses of 'grafana-cli' to 'grafana cli'
Incorrect Usage: flag provided but not defined: -homepath

NAME:
   grafana cli admin reset-admin-password - reset-admin-password <new password>

USAGE:
   grafana cli admin reset-admin-password command [command options] [arguments...]

COMMANDS:
   help, h  Shows a list of commands or help for one command

OPTIONS:
   --password-from-stdin  Read the password from stdin (default: false)
   --user-id value        The admin user's ID (default: 1)
   --help, -h             show help
Error: ✗ flag provided but not defined: -homepath

I had a typo in the command

This command reset the admin user password

docker exec -ti <ID_CONTAINER> grafana cli admin reset-admin-password <PASSWORD>