Spaces:
Runtime error
Runtime error
Download docker.service from shrinftdev/iCommon: direct link, hf CLI and curl.
- Browser
- Download file 500 Bytes
-
https://huggingface.co/spaces/shrinftdev/iCommon/resolve/main/docker.service
- Command line
-
hf download hf://spaces/shrinftdev/iCommon/docker.service
-
curl -L -o docker.service https://huggingface.co/spaces/shrinftdev/iCommon/resolve/main/docker.service
500 Bytes
| [Unit] | |
| Description=Docker Application Container Engine | |
| Documentation=https://docs.docker.com | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| # 当前服务只是为了让1panel可以识别docker启动,没有其他作用 | |
| ExecStart=/bin/sh -c \ | |
| 'while true; do \ | |
| if [ ! -S /var/run/docker.sock ]; then \ | |
| systemctl --no-block fail docker-sock-monitor.service; \ | |
| exit 1; \ | |
| fi; \ | |
| sleep 10; \ | |
| done' | |
| Restart=on-failure | |
| RestartSec=5s | |
| User=root | |
| [Install] | |
| WantedBy=multi-user.target | |