admin 管理员组

文章数量: 1086019

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 ?

本文标签:

Error[2]: Invalid argument supplied for foreach(), File: /www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm, Line: 58
File: /www/wwwroot/roclinux.cn/tmp/route_read.php, Line: 205, include(/www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm)
File: /www/wwwroot/roclinux.cn/tmp/index.inc.php, Line: 129, include(/www/wwwroot/roclinux.cn/tmp/route_read.php)
File: /www/wwwroot/roclinux.cn/index.php, Line: 29, include(/www/wwwroot/roclinux.cn/tmp/index.inc.php)