整理文档

This commit is contained in:
2023-10-17 08:31:02 +08:00
parent ad897f90ea
commit c870d78b6a
9 changed files with 50 additions and 51 deletions

View File

@ -10,7 +10,7 @@ docker ps
### 启动、停止、重启容器
```
```bash
docker start {容器名称或者Id}
docker stop {容器名称或者Id}
@ -18,4 +18,16 @@ docker stop {容器名称或者Id}
docker restart {容器名称或者Id}
```
###
### 进入容器
```bash
docker exec -it [containerName] bash
```
### 镜像构建命令
```bash
docker build -t [imagesName] -f Dockerfile .
```
ps:命令要在 Dockerfile 在的目录下执行