docker-缺少存储设置命令

docker-storage-setup command is missing

我不知道发生了什么,命令 docker-storage-setup 几周前在我这里起作用,但现在不起作用了。
在我 运行 它之后,我收到了:

[root@master ~]# docker-storage-setup
-bash: docker-storage-setup: command not found  

我尝试安装但也失败了:

[root@master ~]# yum install -y docker-storage-setup
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No package docker-storage-setup available.
Error: Nothing to do

我有 RedHat 7.6 机器:

[root@master ~]# hostnamectl
   Static hostname: master
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 00000000000000000000000000000000
           Boot ID: 00000000000000000000000000000000
    Virtualization: vmware
  Operating System: Red Hat Enterprise Linux
       CPE OS Name: cpe:/o:redhat:enterprise_linux:7.6:GA:server
            Kernel: Linux 3.10.0-957.21.2.el7.x86_64
      Architecture: x86-64

如何重新安装它?

编辑:
@mchawre,找不到服务:

[root@master ~]# systemctl status docker-storage-group
Unit docker-storage-group.service could not be found.

@mchawre 当我 运行 yum whatprovides docker-storage-setup 我得到:

[root@master ~]# yum whatprovides docker-storage-setup
Loaded plugins: product-id, search-disabled-repos, subscription-manager
rhel-7-server-ansible-2.6-rpms/x86_64/filelists_db                                                                                                                                                                    | 332 kB  00:00:00
rhel-7-server-rpms/7Server/x86_64/filelists_db                                                                                                                                                                        |  40 MB  00:00:00
No matches found

您需要安装 container-storage-setup,以前称为 docker-storage-setup

检查 this

这里引用上面提到的那行link。

container-storage-setup is part of the Project Atomic suite of container projects, formerly known as docker-storage-setup.

同时查看 this 官方 rehdat 文档。

此处引用上文link中的注意事项

Prior to RHEL 7.4, the container-storage-setup utility was called docker-storage-setup. As with previous RHEL Server and RHEL Atomic releases, you can add storage settings to /etc/sysconfig/docker-storage-setup as input, which results in those settings being placed in /etc/sysconfig/docker-storage as output.

由于您使用的是 RedHat 7.6,conatiner-storage-setup 是正确的软件包。

yum install -y container-storage-setup 应该可以。

希望这对您有所帮助,请告诉我。