Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. Passed invalid arguments: argument of type 'NoneType' is not iterable.
  2. Usage:
  3. Return top-level images (those on which no other images depend) which do
  4. not have a tag assigned to them. These include:
  5. - Images which were once tagged but were later untagged, such as those
  6. which were superseded by committing a new copy of an existing tagged
  7. image.
  8. - Images which were loaded using :py:func:`docker.load
  9. <salt.modules.dockerng.load>` (or the ``docker load`` Docker CLI
  10. command), but not tagged.
  11. prune : False
  12. Remove these images
  13. force : False
  14. If ``True``, and if ``prune=True``, then forcibly remove these images.
  15. **RETURN DATA**
  16. If ``prune=False``, the return data will be a list of dangling image IDs.
  17. If ``prune=True``, the return data will be a dictionary with each key being
  18. the ID of the dangling image, and the following information for each image:
  19. - ``Comment`` - Any error encountered when trying to prune a dangling image
  20. *(Only present if prune failed)*
  21. - ``Removed`` - A boolean (``True`` if prune was successful, ``False`` if
  22. not)
  23. CLI Example:
  24. .. code-block:: bash
  25. salt myminion dockerng.dangling
  26. salt myminion dockerng.dangling prune=True
  27.  
  28. Traceback (most recent call last):
  29. File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 197, in call
  30. ret['return'] = func(*args, **kwargs)
  31. File "/usr/lib/python2.7/dist-packages/salt/modules/dockerng.py", line 3610, in dangling
  32. if '<none>:<none>' in all_images[x]['RepoTags']]
  33. TypeError: argument of type 'NoneType' is not iterable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement