This commit is contained in:
spiritlhl
2023-11-06 10:23:27 +00:00
parent 6e18e2a7cb
commit 076fa7f8c8
2 changed files with 54 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ curl -L https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/onedock
Run
```
./onedocker.sh name cpu memory password sshport startport endport system independent_ipv6
./onedocker.sh name cpu memory password sshport startport endport <independent_ipv6> <system>
```
Currently, the system only supports selecting:
@@ -52,7 +52,7 @@ The following is the information for the created example container:
| Whether to bind a separate IPV6 address| N |
```shell
./onedocker.sh test 1 512 123456 25000 34975 35000 debian N
./onedocker.sh test 1 512 123456 25000 34975 35000 N debian
```
### Related operations
@@ -123,3 +123,28 @@ docker images -aq --format '{{.Repository}}:{{.Tag}}' | grep -E '^ndpresponder'
rm -rf dclog
ls
```
## Update all commands related to the above one-click scripts
Delete the original configuration script
```bash
rm -rf /usr/local/bin/ssh_sh.sh
rm -rf /usr/local/bin/ssh_bash.sh
rm -rf /usr/local/bin/check-dns.sh
rm -rf /root/ssh_sh.sh
rm -rf /root/ssh_bash.sh
rm -rf /root/onedocker.sh
rm -rf /root/create_docker.sh
```
Download back the relevant configuration scripts for the new version
```bash
wget https://raw.githubusercontent.com/spiritLHLS/docker/main/extra_scripts/check-dns.sh -O /usr/local/bin/check-dns.sh && chmod +x /usr/local/bin/check-dns.sh
wget https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/config.sh -O /usr/local/bin/config.sh && chmod +x /usr/local/bin/config.sh
wget https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/ssh_bash.sh -O /usr/local/bin/ssh_bash.sh && chmod +x /usr/local/bin/ssh_bash.sh
wget https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/ssh_sh.sh -O /usr/local/bin/ssh_sh.sh && chmod +x /usr/local/bin/ssh_sh.sh
wget https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/onedocker.sh -O /root/onedocker.sh && chmod +x /root/onedocker.sh
wget https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/create_docker.sh -O /root/create_docker.sh && chmod +x /root/create_docker.sh
```

View File

@@ -31,7 +31,7 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/spiritLHLS/d
运行支持的变量
```
./onedocker.sh name cpu memory password sshport startport endport system independent_ipv6
./onedocker.sh name cpu memory password sshport startport endport <independent_ipv6> <system>
```
目前system仅支持选择
@@ -44,7 +44,7 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/spiritLHLS/d
默认不填则是debian
```shell
./onedocker.sh test 1 512 123456 25000 34975 35000 debian N
./onedocker.sh test 1 512 123456 25000 34975 35000 N debian
```
以下为开设的示例容器的信息:
@@ -137,3 +137,28 @@ docker images -aq --format '{{.Repository}}:{{.Tag}}' | grep -E '^ndpresponder'
rm -rf dclog
ls
```
## 更新上述所有脚本
删除原始配置脚本
```bash
rm -rf /usr/local/bin/ssh_sh.sh
rm -rf /usr/local/bin/ssh_bash.sh
rm -rf /usr/local/bin/check-dns.sh
rm -rf /root/ssh_sh.sh
rm -rf /root/ssh_bash.sh
rm -rf /root/onedocker.sh
rm -rf /root/create_docker.sh
```
下载回新版本的相关配置脚本
```bash
wget https://raw.githubusercontent.com/spiritLHLS/docker/main/extra_scripts/check-dns.sh -O /usr/local/bin/check-dns.sh && chmod +x /usr/local/bin/check-dns.sh
wget https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/config.sh -O /usr/local/bin/config.sh && chmod +x /usr/local/bin/config.sh
wget https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/ssh_bash.sh -O /usr/local/bin/ssh_bash.sh && chmod +x /usr/local/bin/ssh_bash.sh
wget https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/ssh_sh.sh -O /usr/local/bin/ssh_sh.sh && chmod +x /usr/local/bin/ssh_sh.sh
wget https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/onedocker.sh -O /root/onedocker.sh && chmod +x /root/onedocker.sh
wget https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/create_docker.sh -O /root/create_docker.sh && chmod +x /root/create_docker.sh
```