Go2Py_SIM/deploy/scripts/go2py-dock-hw-nodes.service

13 lines
492 B
SYSTEMD
Raw Normal View History

2024-02-04 09:05:52 +08:00
[Unit]
Description=ROS2 device driver container
Requires=docker.service
After=docker.service
[Service]
Restart=always
ExecStartPre=/usr/bin/docker rm -f go2py_docker || true
2024-02-12 10:01:46 +08:00
ExecStart=/bin/bash -c '/usr/bin/docker run --rm --name go2py_docker --privileged --network host -v /home/unitree/locomotion:/home/locomotion -v /dev/*:/dev/* -v /etc/localtime:/etc/localtime:ro --runtime nvidia go2py_dock_hw:latest'
2024-02-04 09:05:52 +08:00
ExecStop=/usr/bin/docker stop -t 2 go2py_docker
[Install]
WantedBy=default.target