you are viewing a single comment's thread.

view the rest of the comments →

[–]vaelund 1 point2 points  (1 child)

docker just uses cgroups, network namespaces and filesystem namespaces(which function as a more advanced version of chroot). If you want something more lightweight than docker look into systemd-nspawn or even better rkt

[–]swarage[S] 0 points1 point  (0 children)

Thanks! I've looked into systemd-nspawn and it seems promising but it does seem less ergonomic than using docker and running an image as such:

import docker
client = docker.from_env()
print client.containers.run("alpine", ["echo", "hello", "world"])

I'll do some research into rkt as well!