I’m trying to run Jenkins through sysbox so I can run docker in docker properly, I followed the install instructions and I’m able to get it to start up from command line but when I add it to my compose file and try and deploy to a swarm I get:
docker stack deploy -c docker-compose.yml build-farm --with-registry-auth: services.jenkins Additional property runtime is not allowed
Seems you didn’t check the compose file 3 reference after all, like I suggested in the other thread for a reason…
The docker compose schema version 3.x has no runtime: element. If you need it, you’ll have to use a version 2.x schema (=designed for docker-compose), which does not support swarm deployments.
If you read my response from 10 minutes ago, you should have concluded that it’s only available for docker-compose deployment. It is not avilable for swarm deployments.
You need to restart the Docker daemon after changing the config.
update:
I realized the troubleshoot guide does not change the default runtime. Sou you need to add an other parameter too, which is in the guide of kata containers: