Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45266

Support for setting shared memory size (--shm-size) for docker slaves

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • docker-plugin
    • docker-plugin 0.16.2

      For our use case we would like to increase the shared memory size of the containers started by the docker-plugin.

      The setting is possible via the command line with the option --shm-size (see  https://docs.docker.com/engine/reference/run/#runtime-constraints-on-resources)

      --shm-size=""	Size of /dev/shm. The format is <number><unit>. number must be greater than 0. Unit is optional and can be b (bytes), k (kilobytes), m (megabytes), or g (gigabytes). If you omit the unit, the system uses bytes. If you omit the size entirely, the system uses 64m.

      I have created a Pull Request for adding this configuration. See PR: https://github.com/jenkinsci/docker-plugin/pull/497

       

       

       

       

          [JENKINS-45266] Support for setting shared memory size (--shm-size) for docker slaves

            ndeloof Nicolas De Loof
            laenzlinger Christof Laenzlinger
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: