You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed ContainerNet on Ubuntu 22.04 following the instructions for a Bare-metal installation (Option 1).
When running the example: sudo python3 examples/containernet_example.py
I got the following error: File "/usr/local/lib/python3.10/dist-packages/docker/[errors.py](http://errors.py/)", line 31, in create_api_error_from_http_exception raise cls(e, response=response, explanation=explanation) docker.errors.APIError: 400 Client Error: Bad Request ("cgroup-parent for systemd cgroup should be a valid slice named as "xxx.slice".
So, after digging a bit, I found out that ContainerNet was creating a cgroup-parent with an unsupported naming convention.
Changing the value of the cgroup-parent variable in containernet/mininet/node.py
from: /docker
to: docker.slice
fixed the error.
Could you please upload the main branch or do I need to create a merge request?
Bests,
Filippo
The text was updated successfully, but these errors were encountered:
I installed ContainerNet on Ubuntu 22.04 following the instructions for a Bare-metal installation (Option 1).
When running the example:
sudo python3 examples/containernet_example.py
I got the following error:
File "/usr/local/lib/python3.10/dist-packages/docker/[errors.py](http://errors.py/)", line 31, in create_api_error_from_http_exception raise cls(e, response=response, explanation=explanation) docker.errors.APIError: 400 Client Error: Bad Request ("cgroup-parent for systemd cgroup should be a valid slice named as "xxx.slice"
.So, after digging a bit, I found out that ContainerNet was creating a cgroup-parent with an unsupported naming convention.
Changing the value of the cgroup-parent variable in containernet/mininet/node.py
from:
/docker
to:
docker.slice
fixed the error.
Could you please upload the main branch or do I need to create a merge request?
Bests,
Filippo
The text was updated successfully, but these errors were encountered: