https://bugzilla.redhat.com/show_bug.cgi?id=1166950
Daniel Walsh <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED CC| |[email protected] Resolution|--- |NOTABUG Last Closed| |2015-01-19 09:52:40 --- Comment #2 from Daniel Walsh <[email protected]> --- You have to label the /var/lib/mysql with the correct SELinux label chcon -t svirt_lxc_net_t -R /var/lib/mysql Which will fix the issue man docker run ... Mounting External Volumes To mount a host directory as a container volume, specify the absolute path to the directory and the absolute path for the container directory separated by a colon: # docker run -v /var/db:/data1 -i -t fedora bash When using SELinux, be aware that the host has no knowledge of container SELinux policy. Therefore, in the above example, if SELinux policy is enforced, the /var/db directory is not writable to the container. A "Permission Denied" message will occur and an avc: mes‐ sage in the host's syslog. To work around this, at time of writing this man page, the following command needs to be run in order for the proper SELinux policy type label to be attached to the host direc‐ tory: # chcon -Rt svirt_sandbox_file_t /var/db Now, writing to the /data1 volume in the container will be allowed and the changes will also be reflected on the host in /var/db. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ golang mailing list [email protected] https://lists.fedoraproject.org/mailman/listinfo/golang
