Commit 3d44dd3c authored by 王进波's avatar 王进波

update

parent 629a3970
...@@ -212,8 +212,33 @@ wmi.get["root\cimv2","select macaddress from Win32_NetworkAdapter where Name = ' ...@@ -212,8 +212,33 @@ wmi.get["root\cimv2","select macaddress from Win32_NetworkAdapter where Name = '
## SINOPIA ——私有NPM仓库 ## SINOPIA ——私有NPM仓库
访问地址:192.168.12.1:4873
### Docker run
```shell ```shell
sudo docker run --name sinopia -d -p 4873:4873 keyvanfatehi/sinopia:latest sudo docker run --name sinopia -d -p 4873:4873 keyvanfatehi/sinopia:latest
``` ```
访问地址:192.168.12.1:4873 ### Backups
\ No newline at end of file
```
docker run --volumes-from sinopia -v $(pwd):/backup ubuntu tar cvf /backup/backup.tar /opt/sinopia
```
Alternatively, host path for /opt/sinopia can be determined by running:
```
docker inspect sinopia
```
### Restore
```
docker stop sinopia
docker rm sinopia
docker run --name sinopia -d -p 4873:4873 keyvanfatehi/sinopia:latest
docker stop sinopia
docker run --volumes-from sinopia -v $(pwd):/backup ubuntu tar xvf /backup/backup.tar
docker start sinopia
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment