mirror of
https://github.com/oneclickvirt/oneclickvirt.github.io.git
synced 2026-05-31 15:49:46 +08:00
update
This commit is contained in:
@@ -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)
|
||||
```
|
||||
@@ -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)
|
||||
```
|
||||
Reference in New Issue
Block a user