services: U22-kasm: image: gezp/ubuntu-desktop:22.04 container_name: ubuntu-gezp-kasm-14002 deploy: resources: reservations: devices: - driver: nvidia count: all # 使用所有可用 GPU capabilities: [gpu] shm_size: 1024m # 共享内存大小 environment: - USER=wangchunlin - PASSWORD=252515144 - GID=1000 # 固定 GID 为 1000 - UID=1000 # 固定 UID 为 1000 - REMOTE_DESKTOP=kasmvnc ports: - "10024:22" - "14002:4000" - "15002:5000" restart: on-failure