Closed toth-istvan-zoltan closed 2 years ago
Update:
Commenting out these lines in the /etc/init.d/docker
works. I'm not sure that it is a good solution because the comments mention performance issues but it starts docker at least.
#ulimit -n 1048576
# Having non-zero limits causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
#if [ "$BASH" ]; then
# ulimit -u unlimited
#else
# ulimit -p unlimited
#fi
We experiment with a teamcity installation in a rootless docker environment.
We have almost everything working, but the docker service fails to start inside the agent container.
When I try to start docker service manually, I get the following error:
I'm thinking about removing the
ulimit
from/etc/init.d/docker
and add it to the docker container with the--ulimit
parameter.Have anyone had this problem before? Any advices and/or opitions about the solution above?
We created the container with "--privileged -e DOCKER_IN_DOCKER=start":
Dockerfile of the agent image: