Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Debug and development tools
It's often required to get a handy lxc/oci container to validate something quickly.
`swmodd` provides a LXC templates to easily create LXC based containers and a script to create oci based container.
> Note: These template/script shall used only for development and test purposes, it shall not be used in deployments.
## To create a new container using iopsys template:
`lxc-create -n <container_name> -t iopsys`
example:
```bash
root@iopsys:~# lxc-create -n test -t iopsys
root@iopsys:~#
```
## To create a new oci container
```bash
# crun_create -h
CRUN iopsys image builder
Special arguments:
[ -h | --help ]: Print this help message and exit.
[ -c | --config ]: Generate config in swmodd for specified container
Arguments:
[ -n | --name <name> ]: The container name
[ -r | --root <path> ]: The root dir path where the environment exists
[ -e | --env <name> ]: Name of the environment
[ --no-reload ]: Do not reload crun
IOPSYS template specific arguments:
[ --busybox-path <path> ]: busybox pathname (default: /bin/busybox)
```
example:
```bash
crun_create -n test
```