admin管理员组文章数量:1356736
When trying to setup a build step to run within node:lts image, I get this:
Unmet requirements:
- docker.server.osType contains linux
- docker.server.osType exists
I got it working by adding user: root
teamcity-agent-1:
image: jetbrains/teamcity-agent:2024.12
container_name: teamcity-agent-1
depends_on:
- teamcity-server
environment:
- SERVER_URL=http://teamcity-server:8111
user: root
volumes:
- tc_agent_1_data:/data/teamcity_agent
- /var/run/docker.sock:/var/run/docker.sock
Now I don't like this approach, it's not wise from a security perspective.
The problem seems to be related to a mismatch between docker group GID on my host machine and the agent image. Running "getent group docker" I get
- inside host: "docker:x:988:USER-NAME"
- inside agent: "docker:x:999:buildagent"
Have you encountered this before ?
本文标签:
版权声明:本文标题:TeamCity: How can I execute a build step inside a Docker image as a non-root user, while the agent itself is running in Docker? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743990484a2572045.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论