May be a separate API for libcontainer?