This procedure creates a docker container and configures it to share the IPC namespace of the host, mounts three host directories as volumes into the container, and provides access to the device file.
Before you begin
- Installed a SmartNIC in the server. See Installing the Napatech SmartNIC in DN-1340.
- Installed Napatech Link-Capture™ Software. See Installing Napatech Link-Capture™ Software in DN-1340.
- Updated the SmartNIC with an appropriate FPGA image. See Updating the FPGA image in DN-1340.
About this task
The following parameters of the docker run command enable containers to
access the IPC namespace, volumes and devices on the host.
- --ipc: Specifies the IPC namespace to use.
- --device: Adds a host device to the container.
- -v, --volume: Binds a volume for mounting.
- libntapi in the container communicates with ntservice on the host.
- libntapi in the container maps memory (mmap) for host buffers.