Open Container Initiative running on Solaris
You should have Solaris 11.4, with solaris-oci brand installed:
$ sudo pkg install system/zones/brand/brand-solaris-oci
$ virtualenv-3.7 oci
$ cd oci
$ . bin/activate
$ mkdir src
$ cd src
$ git clone -b oci-spec https://github.com/guillermomolina/oci-spec-python.git
$ pip install oci-spec-python
$ git clone https://github.com/guillermomolina/oci-api-python.git
$ pip install oci-api-python
$ git clone https://github.com/guillermomolina/oci-solaris-python.git
$ pip install oci-solaris-python
$ mkdir -p container
$ cd container
$ runc spec
$ sudo mkrootfs .
$ sudo runc run container
@container:~/root$ ^D
$ sudo runc delete container
$ du -sh rootfs/
1.7G rootfs/
$ sudo mkrepo
$ mkdir container
$ cd container
$ runc spec
$ sudo mkrootfs -r /var/share/pkg/repositories/solaris-oci .
$ sudo runc run container
@container:~/root$ ^D
$ sudo runc delete container
$ du -sh rootfs/
49M rootfs/
(Only 49Mb!!!!)
$ cd container
$ sudo runc run container
@container:~/root$ ^D
$ runc list
ID STATUS BUNDLEPATH PID
mycontainer stopped /zones/container -1
$ cd container
$ sudo runc create container
$ cd container
$ sudo runc start container
@container:~/root$ ^D
$ sudo runc delete container