Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
isula-build
提交
34deb1fa
I
isula-build
项目概览
openeuler
/
isula-build
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
isula-build
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
34deb1fa
编写于
7月 29, 2020
作者:
O
openeuler-ci-bot
提交者:
Gitee
7月 29, 2020
浏览文件
操作
浏览文件
下载
差异文件
!12 doc: update usage and add isula-build ctr-img import
Merge pull request !12 from zvier/master
上级
955cd89b
b7c42c5e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
50 addition
and
10 deletion
+50
-10
doc/usage.md
doc/usage.md
+50
-10
未找到文件。
doc/usage.md
浏览文件 @
34deb1fa
<!-- vim-markdown-toc GFM -->
*
[
Usage
](
#usage
)
*
[
Configuration
](
#configuration
)
*
[
Starting the Service
](
#starting-the-service
)
*
[
Using systemd (RPM package installation)
](
#using-systemd-rpm-package-installation
)
*
[
Using binary file
](
#using-binary-file
)
*
[
isula-builder supported flags:
](
#isula-builder-supported-flags
)
*
[
Features
](
#features
)
*
[
Container Image Building
](
#container-image-building
)
*
[
--build-arg
](
#--build-arg
)
*
[
--build-static
](
#--build-static
)
*
[
--iidfile
](
#--iidfile
)
*
[
-o, --output
](
#-o---output
)
*
[
--proxy
](
#--proxy
)
*
[
Viewing a Local Persistent Image
](
#viewing-a-local-persistent-image
)
*
[
Importing a Base Image from a Tarball
](
#importing-a-base-image-from-a-tarball
)
*
[
Deleting a Local Persistent Image
](
#deleting-a-local-persistent-image
)
*
[
-a, --all
](
#-a---all
)
*
[
-p, --prune
](
#-p---prune
)
*
[
Authentication of the Remote Image Repository
](
#authentication-of-the-remote-image-repository
)
*
[
-a, --all
](
#-a---all-1
)
*
[
Version query
](
#version-query
)
<!-- vim-markdown-toc -->
# Usage
## Configuration
...
...
@@ -86,7 +111,7 @@ Receive parameters from the command line as parameters in the Dockerfile.
Usage:
`
sudo
isula-build ctr-img build --build-arg foo=bar -f Dockerfile`
`isula-build ctr-img build --build-arg foo=bar -f Dockerfile`
```
bash
$
echo
"This is bar file"
>
bar.txt
...
...
@@ -133,7 +158,7 @@ If this parameter is set to BE, all timestamp differences and other build proces
Usage:
`
$ sudo
isula-build ctr-img build -f Dockerfile --build-static='build-time=2020-05-23 10:55:33' -o docker-archive:./my-image.tar`
`isula-build ctr-img build -f Dockerfile --build-static='build-time=2020-05-23 10:55:33' -o docker-archive:./my-image.tar`
#### --iidfile
...
...
@@ -179,17 +204,32 @@ Indicates whether the container started by running the RUN command inherits the
We can run the images command to view the image stored locally.
`$ sudo isula-build ctr-img images`
```
bash
$
sudo
isula-build ctr-img images
----------------------------------------------
-----------
-----------------
--------------------------
------------
REPOSITORY TAG IMAGE ID CREATED SIZE
----------------------------------------------
-----------
-----------------
--------------------------
------------
docker.io/library/alpine latest a24bb4013296 2020-20-19 19:59:197 5.85 MB
docker.io/library/alpine latest a24bb4013296 2020-20-19 19:59:19 5.85 MB
<none> <none> 39b62a3342ee 2020-20-19 20:06:38 1.45 MB
----------------------------------------------
-----------
-----------------
--------------------------
------------
```
<none> <none> 39b62a3342ee 2020-20-38 38:66:387 1.45 MB
### Importing a Base Image from a Tarball
----------------------------------------------
-----------
-----------------
--------------------------
------------
We can run the
`import`
command to import a base image into the image store from a tarball.
Usage:
`isula-build ctr-img import file [REPOSITORY[:TAG]]`
```
bash
$
sudo
isula-build ctr-img busybox.tar
Import success with image
id
: bf7b3b8ad6d842fb6e0c2dd60727ccb60a86c0e8781a35ae39de5aeef9979189
```
```
bash
$
sudo
isula-build ctr-img busybox.tar busybox:isula
Import success with image
id
: 2d77083e646bf77e25547ea489b00ed8ec318cc37ba81c41e7ec92bca2845033
```
### Deleting a Local Persistent Image
...
...
@@ -215,7 +255,7 @@ Deleting All Images That Do Not Have Tags and Are Stored Locally and Persistentl
Usage:
`
sudo
isula-build ctr-img rm -p`
`isula-build ctr-img rm -p`
```
bash
$
sudo
isula-build ctr-img
rm
-p
...
...
@@ -229,7 +269,7 @@ We can `login` or `logout` an image repository
Login Usage:
`
sudo
isula-build login dockerhub.io`
`isula-build login dockerhub.io`
We can run the
`login`
command to login into an image repository
...
...
@@ -251,7 +291,7 @@ Login Succeeded
Logout Usage:
`
sudo
isula-build logout mydockerhub.io`
`isula-build logout mydockerhub.io`
We can run the
`logout`
command to logout from an image repository
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录