Docker Runner does not work correctly with SELinux flags on mounted volumes

XMLWordPrintable

    • 1
    • 6

      Problem Definition

      When running Docker Runner on CentOS or RHEL, we receive "Permission denied" errors when trying to access anything on the Home Directory Volume. This is caused by Security Enabled Linux Multi-Category Security (SELinux MCS) labels.

      Suggested Solution

      If RHEL or CentOS, add :Z to the volume mappings to label the contents of the directories with the correct Multi-Category Security labels.

      For example:

      Host directory Container directory
      ${bamboo.working.directory} ${bamboo.working.directory}:Z
      ${bamboo.tmp.directory} ${bamboo.tmp.directory}:Z

      Other alternatives can be found on this knowledge-base article:

            Assignee:
            Unassigned
            Reporter:
            Ellie Z
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: