docker-compose up -d --build

を実行した際に

WARNING: Found orphan containers (track-anything_vilbert_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Removing track-anything_tam_1
Building tam
Step 1/1 : FROM pytorch/pytorch:1.9.0-cuda10.2-cudnn7-devel
 ---> 7293def00749

Successfully built 7293def00749
Successfully tagged track-anything_tam:latest
Recreating 489bfecee926_track-anything_tam_1 ... error

ERROR: for 489bfecee926_track-anything_tam_1  Cannot start service tam: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #1: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: initialization error: nvml error: driver/library version mismatch: unknown

ERROR: for tam  Cannot start service tam: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #1: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: initialization error: nvml error: driver/library version mismatch: unknown
ERROR: Encountered errors while bringing up the project.

っていうエラーが出た

NVMLでエラー出てるし

nvidia-smi

Failed to initialize NVML: Driver/library version mismatch

ってエラー出てるから一旦再起動してみるか

sudo reboot

解決したw