Because SELinux prevents Docker from accessing the mounted local directory
5. Create a container's mapping directory (such as:/var/jenkins_home) and modify the directory permission to 777 so that the container can be mounted in the container, the mount point is/var/jenkins_home, write the configuration file started by the container to the mount point, So that you can view the configuration file and log of the operation container externally
4 and 5 steps can be implemented through the addition of parameter--privileged=true Docker container can access the host of any directory
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.