Skip to content

Ubuntu24+580驱动主机环境无法启动容器 #46

@brian00715

Description

@brian00715

主机环境:
Ubuntu 24.04
NVIDIA驱动版本:580.65.06

问题:
运行docker run后容器立即退出,如果开了restart on failure会一直重启。所有系统版本均无法启动

尝试用交互模式追踪报错:

docker run -it \
    --name my_workspace \
    --cap-add=SYS_PTRACE \
    --gpus all \
    --shm-size=1024m \
    -e USER=ubuntu \
    -e PASSWORD=ubuntu \
    -e GID=$(id -g) \
    -e UID=$(id -u) \
    -p 10022:22 \
    -p 14000:4000 \
    -p 15000:5000 \
    gezp/ubuntu-desktop:20.04-cu11.7.1 
update-alternatives: using /usr/bin/python3 to provide /usr/bin/python (python) in auto mode
 * Starting system message bus dbus                                                                                                               dbus[67]: Unknown username "whoopsie" in message bus configuration file
                                                                                                                                           [ OK ]
start nomachine
[2025-09-19T08:19:07.445Z] info  Wrote default config file to /home/ubuntu/.config/code-server/config.yaml
[2025-09-19T08:19:07.541Z] info  code-server 4.103.2 54b33a75e0b4593b77f9a217323c4b27a42f4073
[2025-09-19T08:19:07.541Z] info  Using user-data-dir /home/ubuntu/.local/share/code-server
[2025-09-19T08:19:07.561Z] info  Using config file /home/ubuntu/.config/code-server/config.yaml
[2025-09-19T08:19:07.561Z] info  HTTPS server listening on https://0.0.0.0:5000/
[2025-09-19T08:19:07.561Z] info    - Authentication is enabled
[2025-09-19T08:19:07.561Z] info      - Using password from $PASSWORD
[2025-09-19T08:19:07.561Z] info    - Using certificate for HTTPS: /etc/ssl/certs/ssl-cert-snakeoil.pem
[2025-09-19T08:19:07.561Z] info  Session server listening on /home/ubuntu/.local/share/code-server/code-server-ipc.sock
NX> 111 New connections to NoMachine server are enabled.
NX> 161 Enabled service: nxserver.
NX> 162 WARNING: Cannot find X servers running on this machine.
NX> 162 WARNING: A new virtual display will be created on demand.
NX> 161 Enabled service: nxd.
tail: cannot open '/usr/NX/var/log/nxserver.log' for reading: No such file or directory
tail: no files remaining

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions