Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS committed Feb 26, 2024
1 parent 9c15305 commit 25d3d2c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/en/guide/docker/docker_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```
8 changes: 8 additions & 0 deletions docs/guide/docker/docker_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```

0 comments on commit 25d3d2c

Please sign in to comment.