Skip to content

Commit

Permalink
Add some options for docker run command
Browse files Browse the repository at this point in the history
  • Loading branch information
curder committed Aug 27, 2024
1 parent fce4f0b commit b08a61d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/others/docker-commands-essentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
| `docker run <image>` | 从镜像运行容器 |
| `docker run -d <image>` | 从镜像运行容器(后台) |
| `docker run --name ‹name> <image>` | 从镜像运行容器并命名 |
| `docker run -it <image> <bash>` | 从镜像运行容器并交互 |
| `docker run -it --rm <image> <bash>` | 从镜像运行容器并删除 |
| `docker stop <container>` | 停止容器 |
| `docker start <container>` | 启动容器 |
| `docker restart <container>` | 重启容器 |
Expand Down

0 comments on commit b08a61d

Please sign in to comment.