Ops
Search…
Bare Metal
Ops can run on bare metal (eg: linux on real hardware) just fine.

Pre-requisites

Image Operations

Build Image

1
$ ops build -e PORT=8080 -c config.json mylilwebserver -i mynewimg
Copied!

List Images

You can list existing images on bare metal with ops image list.
1
$ ops image list -t onprem
2
+--------------------+--------+-------------------------------+
3
| NAME | STATUS | CREATED |
4
+--------------------+--------+-------------------------------+
5
| nanos-main-image | READY | 2019-03-21T15:06:17.567-07:00 |
6
+--------------------+--------+-------------------------------+
7
| nanos-node-image | READY | 2019-04-16T23:16:03.145-07:00 |
8
+--------------------+--------+-------------------------------+
9
| nanos-server-image | READY | 2019-03-21T15:50:04.456-07:00 |
10
+--------------------+--------+-------------------------------+
Copied!

Delete Image

Instance Operations

Create Instance

1
ops instance create <image_name> -t onprem -z onprem -p 8080
Copied!

List Instances

1
ops instance list -t onprem -z onprem
Copied!

Get Logs for Instance

Delete Instance

For the time being pids are used as instance ids. Perhaps this will change in the future if more people opt to use this and they need stronger prevention of data leakage.
1
ops instance delete 53502 -t onprem -z onprem
Copied!