A simple implementation of container based on python
$ sudo python3 python-container.py run /bin/bashAdd one adapted version: python-container-v2.py
You can check your Cgroup version by using the following command:
$ sudo docker infoYou will find yours like Cgroup Version: 1 or Cgroup Version: 2
Idea comes from @lizrice