d = Docker()
d = Docker('fedora:latest')
d = Docker(image='fedora:latest')
d = Docker(image='fedora:latest', mode='P1')
In addition, added unit tests for each of these commands.
Please note that this fix does not remove the __init__ function from Docker,py as suggested here. Instead, it sets default values for the image and mode parameters in the __init__ function in Docker.py.
The following Docker commands now work correctly:
In addition, added unit tests for each of these commands.
Please note that this fix does not remove the
__init__
function from Docker,py as suggested here. Instead, it sets default values for theimage
andmode
parameters in the__init__
function in Docker.py.