This commit is contained in:
spiritlhl
2024-02-26 11:16:35 +00:00
parent 9c15305591
commit 25d3d2cfce
2 changed files with 16 additions and 0 deletions

View File

@@ -147,4 +147,12 @@ wget https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/ssh_bash.s
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
```
## Restart all containers after host reboot
The default containers are not set to restart themselves after stopping, you need to execute the following command to start all stopped containers.
```
docker start $(docker ps -aq)
```

View File

@@ -161,4 +161,12 @@ wget https://raw.githubusercontent.com/spiritLHLS/docker/main/scripts/ssh_bash.s
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
```
## 宿主机重启后重启所有容器
默认容器没有设置停止后自重启,需要执行以下命令启动所有停止的容器
```
docker start $(docker ps -aq)
```