minishift / minishift-centos-iso

CentOS based ISO as an alternative for boot2docker ISO
GNU Lesser General Public License v3.0
40 stars 33 forks source link

/var/lib/docker does not have correct SELinux label #216

Closed praveenkumar closed 6 years ago

praveenkumar commented 6 years ago

Refer: https://github.com/minishift/minishift/issues/2021

Looks like during the mailing conversation @rhatdan pointed out there might be SELinux mislabel occurred when we created the bind mount on xfs file system.

Just after minishift started

# ls -lZ /var/lib/ | grep docker
drwx--x--x. root root    system_u:object_r:unlabeled_t:s0 docker

After restoring SELinux context


# restorecon -R -v /var/lib/docker/
# ls -lZ /var/lib/ | grep docker
drwx--x--x. root root    system_u:object_r:container_var_lib_t:s0 docker
``
praveenkumar commented 6 years ago

resolved by #217