diff --git a/docs/en_US/guide/docker_build.md b/docs/en_US/guide/docker_build.md index 0da76a52ea..e489d516c8 100644 --- a/docs/en_US/guide/docker_build.md +++ b/docs/en_US/guide/docker_build.md @@ -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 ``` 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 +``` \ No newline at end of file diff --git a/docs/guide/docker_build.md b/docs/guide/docker_build.md index 5b631a6620..f529805beb 100644 --- a/docs/guide/docker_build.md +++ b/docs/guide/docker_build.md @@ -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 ``` 目前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 +``` \ No newline at end of file