-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (37 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
services:
bk-developer:
command: /bin/sh -c "while sleep 1000; do :; done"
container_name: bk-dev-container
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
environment:
DISPLAY: ${DISPLAY}
NVIDIA_DRIVER_CAPABILITIES: all
NVIDIA_VISIBLE_DEVICES: all
image: bk-dev-docker:latest
network_mode: "host"
privileged: true
runtime: nvidia
volumes:
- /dev/shm:/dev/shm
- ~/.gitconfig:/root/.gitconfig:ro
- ~/.ssh:/root/.ssh-localhost:ro
- /tmp/.X11-unix:/tmp/.X11-unix:rw
bk-developer-no-gpu:
command: /bin/sh -c "while sleep 1000; do :; done"
container_name: bk-dev-container
environment:
DISPLAY: ${DISPLAY}
image: bk-dev-docker:latest
network_mode: "host"
privileged: true
volumes:
- /dev/shm:/dev/shm
- ~/.gitconfig:/root/.gitconfig:ro
- ~/.ssh:/root/.ssh-localhost:ro
- /tmp/.X11-unix:/tmp/.X11-unix:rw