# 求助：Docker-compose部署act\_runner出现错误

**URL:** <https://forum.gitea.com/t/docker-compose-act-runner/8525>\
**Category:** 中文求助(Chinese Only)\
**Created:** [February 4, 2024, 1:40am UTC](https://forum.gitea.com/t/docker-compose-act-runner/8525 "2024-02-04T01:40:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![titanljy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/titanljy/32/4366_2.png) [@titanljy](https://forum.gitea.com/u/titanljy)\
**Post date:** [February 4, 2024, 1:40am UTC](https://forum.gitea.com/t/docker-compose-act-runner/8525/1 "2024-02-04T01:40:49Z")

</div>

尝试使用docker-compose的方式部署act\_runner失败，有以下的错误内容打印：

```auto
level=info msg="Starting runner daemon"
level=error msg="fail to invoke Declare" error="unknown: rpc error: code = Unauthenticated desc = unregistered runner"
Error: Unknown: rpc error: code = Unauthenticated desc = unregistered runner

```

环境:

- Gitea版本：1.21.4
- act\_runner版本：gitea/act\_runner:latest(48f96921f116)
- gitea实例以另一份docker-compose.yml的方式部署在本机上，将url传递给GITEA\_INSTANCE\_URL
- GITEA\_RUNNER\_REGISTRATION\_TOKEN使用admin/actions/runners下的全局注册令牌，也多次尝试过“重置注册令牌”

---

<div class="post-metadata">

**Author:** ![francesco.lucrezia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/francesco.lucrezia/32/4374_2.png) [@francesco.lucrezia](https://forum.gitea.com/u/francesco.lucrezia)\
**Post date:** [February 5, 2024, 6:03pm UTC](https://forum.gitea.com/t/docker-compose-act-runner/8525/2 "2024-02-05T18:03:08Z")

</div>

Hi, you should remove the hidden file `data/.runner` to make the runner visibile again

---

<div class="post-metadata">

**Author:** ![titanljy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/titanljy/32/4366_2.png) [@titanljy](https://forum.gitea.com/u/titanljy)\
**Post date:** [February 6, 2024, 1:03am UTC](https://forum.gitea.com/t/docker-compose-act-runner/8525/3 "2024-02-06T01:03:34Z")

</div>

Thank you, it works.
