2024-05-05 03:45:27 +08:00
|
|
|
[Unit]
|
|
|
|
Description=ROS2 device driver container
|
|
|
|
Requires=multi-user.target
|
|
|
|
After=multi-user.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart=always
|
|
|
|
ExecStartPre=/usr/bin/docker rm -f go2py_robot_description || true
|
2024-12-27 10:02:35 +08:00
|
|
|
ExecStart=/bin/bash -c '/usr/bin/docker run --rm --name go2py_robot_description --privileged --network host -v /dev/*:/dev/* -v /etc/localtime:/etc/localtime:ro go2py_description:latest'
|
2024-05-05 03:45:27 +08:00
|
|
|
ExecStop=/usr/bin/docker stop -t 2 go2py_robot_description
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|