README.md 1.9 KB
Newer Older
O
openeuler-ci-bot 已提交
1 2
# isula-transform

W
wangkang101 已提交
3
## Description
O
openeuler-ci-bot 已提交
4

W
wangkang101 已提交
5
`isula-transform` is a tool which converts the configuration of the docker container to a type that isulad can recognize as being loaded.
O
openeuler-ci-bot 已提交
6

W
wangkang101 已提交
7
## Build and Installation
O
openeuler-ci-bot 已提交
8

W
wangkang101 已提交
9
Before building, ensure that [Golang](https://golang.org/) 1.13 or later and [lcr](https://gitee.com/openeuler/lcr) 2.0.1 or later are installed successfully.
O
openeuler-ci-bot 已提交
10

W
wangkang101 已提交
11
Just execute `sudo make && sudo make install` in the code root directory and enjoy it.
O
openeuler-ci-bot 已提交
12

W
wangkang101 已提交
13
## Instructions
O
openeuler-ci-bot 已提交
14

W
wangkang101 已提交
15
Basic usage of isula-transform:
O
openeuler-ci-bot 已提交
16

W
wangkang101 已提交
17 18 19
``` txt
NAME:
   isula-transform - transform specify docker container type configuration to iSulad type
O
openeuler-ci-bot 已提交
20

W
wangkang101 已提交
21 22
USAGE:
   [global options] --all|container_id[ container_id...]
O
openeuler-ci-bot 已提交
23

W
wangkang101 已提交
24 25
COMMANDS:
   help, h  Shows a list of commands or help for one command
O
openeuler-ci-bot 已提交
26

W
wangkang101 已提交
27 28 29 30 31 32 33 34 35
GLOBAL OPTIONS:
   --log value                 specific output log file path (default: "/var/log/isula-kits/transform.log")
   --log-level value           Customize the level of logging for collection, allowed: debug, info, warn, error (default: "info")
   --docker-graph value        graph root of docker (default: "/var/lib/docker")
   --docker-state value        state root of docker (default: "/var/run/docker")
   --all                       transform all containers
   --help, -h                  show help
   --version, -v               print the version
```
O
openeuler-ci-bot 已提交
36

W
wangkang101 已提交
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
### NOTE

There are a few things to note about using `isula-transform` :

- currently, only docker 18.09 containers are supported to transform to isulad container
- due to isulad's lack of native network capability, docker container needs to configure host network
- `isula-transform` will read the container's OCI configuration, which requires the docker container to be in a pause or running state,  and to be paused if it is in a running state

## Contributions

We always welcome new contributors. And we are happy to provide guidance for the new contributors.

## Licensing

`isula-transform` is licensed under the [Mulan PSL v2](https://license.coscl.org.cn/MulanPSL2/index.html).