13 lines
511 B
Desktop File
13 lines
511 B
Desktop File
[Unit]
|
|
Description=ROS2 device driver container
|
|
Requires=docker.service
|
|
After=docker.service
|
|
|
|
[Service]
|
|
Restart=always
|
|
ExecStartPre=/usr/bin/docker rm -f go2py_robot_docker || true
|
|
ExecStart=/bin/bash -c '/usr/bin/docker run --rm --name go2py_robot_docker --privileged --network host -v /home/unitree/locomotion:/home/locomotion -v /dev/*:/dev/* -v /etc/localtime:/etc/localtime:ro --runtime nvidia go2py_robot_hw:latest'
|
|
ExecStop=/usr/bin/docker stop -t 2 go2py_robot_docker
|
|
|
|
[Install]
|
|
WantedBy=default.target |