在 RHEL 7 上将 Isilon NFS 用于 /var/lib/docker

在 RHEL 7 上将 Isilon NFS 用于 /var/lib/docker

RHEL:7.8 码头工人:1.13.1

该服务器由多个团队共享,我想让 docker 可用于那些无法/不会在笔记本电脑上安装它的人进行测试或沙箱。因为它是共享的,所以映像增长可能会显着,我想将 Isilon NFS 共享挂载为 /var/lib/docker。我使用“vfs”作为存储驱动程序使其工作,但我认为这是导致以下错误的原因:

ERROR: for redis  Cannot create container for service redis: SELinux relabeling of <mount_point>/volumes/1185719ebf09771e9e9641f329c9c57f72792a942c283562f701ece914cca82a/_data is not allowed: "operation not supported"

我看到了尝试“chcon -Rt svirt_sandbox_file_t <mount_point>”的建议,但我得到了相同的“不支持操作”错误。

还有其他人让这个工作吗?我是不是走错了方向?

答案1

我通过卸载 RHEL docker 并从 docker.com 安装 docker 19.03.13 解决了这个问题。对于那些好奇的人:

[root@oitleap01 ~]# docker info
Client:
 Debug Mode: false

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 19.03.13
 Storage Driver: devicemapper
  Pool Name: docker-0:61-7297578891-pool
  Pool Blocksize: 65.54kB
  Base Device Size: 10.74GB
  Backing Filesystem: xfs
  Udev Sync Supported: true
  Data file: /dev/loop0
  Metadata file: /dev/loop1
  Data loop file: /net/oitfile01/ifs/oitisilon/oit/Unix/ReplicatedData/UnixTeam/docker/oitleap01/devicemapper/devicemapper/data
  Metadata loop file: /net/oitfile01/ifs/oitisilon/oit/Unix/ReplicatedData/UnixTeam/docker/oitleap01/devicemapper/devicemapper/metadata
  Data Space Used: 11.73MB
  Data Space Total: 107.4GB
  Data Space Available: 107.4GB
  Metadata Space Used: 17.36MB
  Metadata Space Total: 2.147GB
  Metadata Space Available: 2.13GB
  Thin Pool Minimum Free Space: 10.74GB
  Deferred Removal Enabled: true
  Deferred Deletion Enabled: true
  Deferred Deleted Device Count: 0
  Library Version: 1.02.164-RHEL7 (2019-08-27)
...
Docker Root Dir: <mount point>
...
WARNING: the devicemapper storage-driver is deprecated, and will be removed in a future release.
WARNING: devicemapper: usage of loopback devices is strongly discouraged for production use.
         Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.

相关内容