Replies: 2 comments 15 replies
-
I'm also facing the same issue, it seems like docker with It seems to be a docker issue. Simple Reproduction of not working services:
test:
image: nvidia/cuda:12.3.1-base-ubuntu20.04
command: nvidia-smi
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [compute, video, gpu] $ docker compose up
[+] Running 1/1
✔ Container gpu-test-test-1 Recreated 0.1s
Attaching to test-1
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "nvidia-smi": executable file not found in $PATH: unknown And a working services:
test:
image: nvidia/cuda:12.3.1-base-ubuntu20.04
command: nvidia-smi
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu] $ docker compose up
[+] Running 1/1
✔ Container gpu-test-test-1 Recreated 0.1s
Attaching to test-1
test-1 | Wed Feb 21 16:47:11 2024
test-1 | +---------------------------------------------------------------------------------------+
test-1 | | NVIDIA-SMI 545.29.06 Driver Version: 545.29.06 CUDA Version: 12.3 |
test-1 | |-----------------------------------------+----------------------+----------------------+
test-1 | | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
test-1 | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
test-1 | | | | MIG M. |
test-1 | |=========================================+======================+======================|
test-1 | | 0 NVIDIA GeForce GTX 950M Off | 00000000:01:00.0 Off | N/A |
test-1 | | N/A 55C P8 N/A / 200W | 76MiB / 4096MiB | 0% Default |
test-1 | | | | N/A |
test-1 | +-----------------------------------------+----------------------+----------------------+
test-1 |
test-1 | +---------------------------------------------------------------------------------------+
test-1 | | Processes: |
test-1 | | GPU GI CI PID Type Process name GPU Memory |
test-1 | | ID ID Usage |
test-1 | |=======================================================================================|
test-1 | +---------------------------------------------------------------------------------------+
test-1 exited with code 0 |
Beta Was this translation helpful? Give feedback.
5 replies
-
name: immich
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
command: [ "start.sh", "immich" ]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- ${EXTERNAL_LOCATION}:/mnt/catImages:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
ports:
- 2283:3001
depends_on:
- redis
- database
restart: always
labels:
- "com.centurylinklabs.watchtower.enable=false"
immich-microservices:
container_name: immich_microservices
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/hardware-transcoding
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
command: [ "start.sh", "microservices" ]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- ${EXTERNAL_LOCATION}:/mnt/catImages:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
runtime: nvidia
# devices:
# - /dev/dri:/dev/dri
depends_on:
- redis
- database
restart: always
environment:
- NVIDIA_VISIBLE_DEVICES=all
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities:
- gpu
- compute
- video
labels:
- "com.centurylinklabs.watchtower.enable=false"
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}-cuda
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
# service: cuda # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- model-cache:/cache
env_file:
- .env
restart: always
labels:
- "com.centurylinklabs.watchtower.enable=false"
environment:
- NVIDIA_VISIBLE_DEVICES=all
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities:
- gpu
- compute
- video
redis:
container_name: immich_redis
image: redis:6.2-alpine@sha256:afb290a0a0d0b2bd7537b62ebff1eb84d045c757c1c31ca2ca48c79536c0de82
restart: always
labels:
- "com.centurylinklabs.watchtower.enable=false"
volumes:
- redis-data:/data
database:
container_name: immich_postgres
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
volumes:
- pgdata:/var/lib/postgresql/data
restart: always
labels:
- "com.centurylinklabs.watchtower.enable=false"
volumes:
pgdata:
model-cache:
redis-data:
Any suggestion? Thanks! |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The bug
Immich cannot work with a video card. I completed all the requirements according to the instructions but still ran into a problem.
NVIDIA-SMI 535.154.05
Driver Version: 535.154.05
CUDA Version: 12.2
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Nov_18_09:45:30_PST_2021
Cuda compilation tools, release 11.5, V11.5.119
Build cuda_11.5.r11.5/compiler.30672275_0
nvidia-container-toolkit --version
NVIDIA Container Runtime Hook version 1.14.5
commit: 9ea336070134e612145d342e495f2fc616aab063
ML container logs.txt
microservices logs.txt
server logs.txt
The OS that Immich Server is running on
Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-94-generic x86_64)
Version of Immich Server
1.94.1
Version of Immich Mobile App
1.94.1
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions