Update docker script to avoid 'chcon' error

Description

Possible solution:

  • check 'chcon' is available

  • ':z'

Activity

Show:
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.

Ding-Yi Chen
February 9, 2017, 1:33 AM
Ready for Release

Assignee

Ding-Yi Chen

Reporter

Alex Eng

Labels

None

Tested Version/s

None

Story Points

1

Sprint

None

Fix versions

Priority

unspecified
Configure