Public bug reported:
Current version of the package on Noble release - 5.0.3-1ubuntu1 - does not
support 'cgroupns' option in DockerClient methods.
Can you please update it?
[Steps to reproduce]
>>> import docker
>>> client = docker.from_env()
>>> client.containers.run("ubuntu:latest", "echo Hello world!", cgroupns="host")
[Expected result]
b'Hello world!\n'
[Actual result]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/docker/models/containers.py", line 819,
in run
container = self.create(image=image, command=command,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/docker/models/containers.py", line 877,
in create
create_kwargs = _create_container_args(kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/docker/models/containers.py", line 1093,
in _create_container_args
raise create_unexpected_kwargs_error('run', kwargs)
TypeError: run() got an unexpected keyword argument 'cgroupns'
[Ubuntu release info]
$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 24.04.1 LTS
Release: 24.04
[Package info]
$ apt-cache policy python3-docker
python3-docker:
Installed: 5.0.3-1ubuntu1.1
Candidate: 5.0.3-1ubuntu1.1
Version table:
*** 5.0.3-1ubuntu1.1 500
500 http://nova.clouds.archive.ubuntu.com/ubuntu noble-updates/universe
amd64 Packages
100 /var/lib/dpkg/status
5.0.3-1ubuntu1 500
500 http://nova.clouds.archive.ubuntu.com/ubuntu noble/universe amd64
Packages
** Affects: python-docker (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2098863
Title:
Missing support for 'cgroupns' in Noble
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-docker/+bug/2098863/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs