Docker-in-docker on Ubuntu 22.04
Hi,
I'm using Ubuntu 22.04 with the Ubuntu TeamCity agent version 2021.1 in a docker container. The agent is being generated from the official git repo (https://github.com/JetBrains/teamcity-docker-samples.git) with the command 'docker-compose start teamcity-agent-1'
When I try to run a docker container within this agent I get the following error message:
Step 1/3: Flash Devices (Command Line) 1s
Starting: /opt/buildagent/temp/agentTmp/custom_script4793374857629311375
in directory: /opt/buildagent/work/c9c9ffee9b8db5be
docker: Error response from daemon: cgroups: cgroup mountpoint does not exist: unknown.
Process exited with code 125
Process exited with code 125 (Step: Flash Devices (Command Line))
Step Flash Devices (Command Line) failed
The build step is a custom script with 'docker run --rm lpodkalicki/stm32-toolchain st-flash --version' as a simple test.
I've added cgroup_parent into the docker-compose.yml file and tried 'system.slice' and 'cgroup2.slice' to no avail. Can someone point me in the right direction to solve the cgroups issue?
Thanks
1 comment
Sort by
Date
Votes

This issue seems similar, so it might be helpful: https://teamcity-support.jetbrains.com/hc/en-us/community/posts/4405053438354-cgroup-mountpoint-does-not-exist
Please sign in to leave a comment.