mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-10 11:54:37 +00:00
Fix and update
This commit is contained in:
@@ -190,6 +190,7 @@ Sending build context to Docker daemon 2.048 kB
|
||||
|
||||
```bash
|
||||
## $env:DOCKER_BUILDKIT=0
|
||||
|
||||
## export DOCKER_BUILDKIT=0
|
||||
|
||||
$ docker build -t hello-world https://github.com/docker-library/hello-world.git#master:amd64/hello-world
|
||||
@@ -209,6 +210,8 @@ Successfully built 038ad4142d2b
|
||||
|
||||
#### 用给定的 tar 压缩包构建
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ docker build http://server/context.tar.gz
|
||||
```
|
||||
@@ -217,6 +220,8 @@ $ docker build http://server/context.tar.gz
|
||||
|
||||
#### 从标准输入中读取 Dockerfile 进行构建
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
docker build - < Dockerfile
|
||||
```
|
||||
@@ -231,6 +236,8 @@ cat Dockerfile | docker build -
|
||||
|
||||
#### 从标准输入中读取上下文压缩包进行构建
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ docker build - < context.tar.gz
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user