Update docker script to avoid 'chcon' error

Description

Possible solution:

  • check 'chcon' is available

  • ':z'

Activity

Show:
Ding-Yi Chen
February 9, 2017, 1:33 AM
Sean Flanigan
February 1, 2017, 4:38 AM
Edited

Background info from man docker-run:

To change a label in the container context, you can add either of two suffixes :z or :Z to the volume mount. These suffixes tell Docker to relabel file objects on the shared volumes. The z option tells Docker that two containers share the volume content. As a result, Docker labels the content with a shared content label. Shared volume labels allow all containers to read/write content. The Z option tells Docker to label the content with a private unshared label. Only the current container can use a private volume.

Ready for Release
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Ding-Yi Chen

Reporter

Alex Eng

Tested Version/s

None