新增docker容器安装使用方法

This commit is contained in:
iyuu.cn
2020-02-18 21:22:31 +08:00
parent ca148bac6b
commit 8ba1ef1ff4
4 changed files with 34 additions and 0 deletions

6
docker/build.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
curl -o ./IYUUAutoReseed.zip http://api.iyuu.cn/IYUUAutoReseed.zip
unzip -o ./IYUUAutoReseed.zip -d /root
rm ./IYUUAutoReseed.zip
docker build -t iyuu:latest .
docker run -it -v /root/IYUUAutoReseed:/var/www -p 8510:9000 --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest