Use sudo to run docker because rootless docker may be provided by docker desktop and runs in VM, which has problem of pass through devices.

This commit is contained in:
Anduin Xue
2024-07-01 17:08:02 +00:00
parent e97924cf15
commit db02d640e8
+2 -2
View File
@@ -56,8 +56,8 @@ Then run the following commands in a Linux shell:
```bash
image=hub.aiursoft.cn/aiursoft/chessserver
appName=chessserver
docker pull $image
docker run -d --name $appName --restart unless-stopped -p 5000:5000 -v /var/www/$appName:/data $image
sudo docker pull $image
sudo docker run -d --name $appName --restart unless-stopped -p 5000:5000 -v /var/www/$appName:/data $image
```
That will start a web server at `http://localhost:5000` and you can test the app.