mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-27 12:15:34 +00:00
Add blank lines before headers
This commit is contained in:
@@ -49,6 +49,7 @@ $ buildah bud -t my-app:latest .
|
||||
除了使用 Dockerfile,Buildah 最强大的功能来自于它的交互式和脚本化构建机制。我们可以从一个极简的镜像(或基础镜像)开始构建:
|
||||
|
||||
```bash
|
||||
|
||||
# 获取一个基础镜像
|
||||
$ container=$(buildah from alpine:latest)
|
||||
|
||||
@@ -78,6 +79,7 @@ $ buildah rm $container
|
||||
通过 `buildah images` 可以查看当前环境中的镜像。推送镜像到外部 Registry 也十分安全方便:
|
||||
|
||||
```bash
|
||||
|
||||
# 查看本地构建的镜像
|
||||
$ buildah images
|
||||
|
||||
|
||||
Reference in New Issue
Block a user