Merge branch 'main' of https://gitea.yinghuasoft.com/yhsoft/dev-aid
This commit is contained in:
@ -10,7 +10,7 @@ docker ps
|
||||
|
||||
### 启动、停止、重启容器
|
||||
|
||||
```
|
||||
```bash
|
||||
docker start {容器名称或者Id}
|
||||
|
||||
docker stop {容器名称或者Id}
|
||||
@ -18,6 +18,7 @@ docker stop {容器名称或者Id}
|
||||
docker restart {容器名称或者Id}
|
||||
```
|
||||
|
||||
<<<<<<< HEAD
|
||||
### 查看镜像
|
||||
```
|
||||
docker images
|
||||
@ -46,4 +47,19 @@ df -h
|
||||
### 查看目录下每个文件夹的大小
|
||||
```
|
||||
du -h -d1 {路径}
|
||||
```
|
||||
```
|
||||
=======
|
||||
### 进入容器
|
||||
|
||||
```bash
|
||||
docker exec -it [containerName] bash
|
||||
```
|
||||
|
||||
### 镜像构建命令
|
||||
|
||||
```bash
|
||||
docker build -t [imagesName] -f Dockerfile .
|
||||
```
|
||||
|
||||
ps:命令要在 Dockerfile 在的目录下执行
|
||||
>>>>>>> 7f7fc1406d4278f4b5c10b95bbe521e61f3b63db
|
||||
|
Reference in New Issue
Block a user