version: '2' services: regbook: hostname: regbook container_name: regbook restart: always image: registry.cn-hangzhou.aliyuncs.com/sxtest/regbook:gpu privileged: true ipc: host tty: true working_dir: /workspace ports: - '18040:8080' - '22422:22' volumes: - ./:/workspace # deploy: # resources: # reservations: # devices: # - capabilities: [gpu]