Scaling code for workers running in docker containers