Article 5JQRJ nvme-cli fail to discover

nvme-cli fail to discover

by
AniruddhaSonawane
from LinuxQuestions.org on (#5JQRJ)
I am trying to use nvme-cli inside my docker container.
I have provided my container root privilege and along with all the dependencies, I also installed nvme-cli to use nvme commands inside my docker container to connect to nvme devices.

Host OS: RHEL 8.1
Docker version: 20.10.6
Docker Image Details: fedora:33 as a base OS
Extra flags I use to run my container: --net=host --ipc host --privileged --cap-add SYS_ADMIN
nvme version 1.11.1

Although I am able to achieve my purpose by using 'nvme connect' command, which is working absolutely fine but for some reason 'nvme discover' is throwing me error.

This is the errors I receive for each command:
Code:$ nvme discover -t tcp -a <ip address> -s 4420
Failed to open /dev/nvme1: No such file or directory
Get discovery log page failed: -2Code:$ nvme discover -t tcp -a <ip address>
Failed to write to /dev/nvme-fabrics: Connection refusedSo, I am a bit curious about why it is showing me this behavior. I tried searching for this particular error but there is no article or forum as such where I found the solution.

It would be really nice if someone can please explain it. Or at least help me out figuring what is happening exactly and how can I solve this error.latest?d=yIl2AUoC8zA latest?i=xI2JnlW5y9w:THNwge2Ziq0:F7zBnMy latest?i=xI2JnlW5y9w:THNwge2Ziq0:V_sGLiP latest?d=qj6IDK7rITs latest?i=xI2JnlW5y9w:THNwge2Ziq0:gIN9vFwxI2JnlW5y9w
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments