mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-11 04:14:38 +00:00
Simplify words and fix format issues
This commit is contained in:
@@ -146,8 +146,6 @@ Sending build context to Docker daemon 2.048 kB
|
||||
|
||||
### 4.5.7 其它 `docker build` 的用法
|
||||
|
||||
本节涵盖了相关内容与详细描述,主要探讨以下几个方面:
|
||||
|
||||
#### 直接用 Git repo 进行构建
|
||||
|
||||
或许你已经注意到了,`docker build` 还支持从 URL 构建,比如可以直接从 Git repo 中构建:
|
||||
@@ -174,8 +172,6 @@ Successfully built 038ad4142d2b
|
||||
|
||||
#### 用给定的 tar 压缩包构建
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ docker build http://server/context.tar.gz
|
||||
```
|
||||
@@ -184,8 +180,6 @@ $ docker build http://server/context.tar.gz
|
||||
|
||||
#### 从标准输入中读取 Dockerfile 进行构建
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
docker build - < Dockerfile
|
||||
```
|
||||
@@ -200,8 +194,6 @@ cat Dockerfile | docker build -
|
||||
|
||||
#### 从标准输入中读取上下文压缩包进行构建
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ docker build - < context.tar.gz
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user