Requested command is not present on the system
Verify that dockerd and docker binary works fine. This is performed by calling docker version, which also checks server API version.
Returns: | bool, True if all is good, otherwise ConuException or CommandDoesNotExistException is thrown |
---|
connect to port on host and return True on success
Parameters: |
|
---|---|
Returns: | bool |
Verify that the provided command exists. Raise CommandDoesNotExistException in case of an error or if the command does not exist.
Parameters: |
|
---|---|
Returns: | bool, True if everything’s all right (otherwise exception is thrown) |
get SELinux status of host
Returns: | string, one of Enforced, Permissive, Disabled |
---|
Obtain values from dicts and lists gracefully. Example:
print(graceful_get({"a": [{1: 2}, {"b": "c"}]}, "a", "b"))
c
Parameters: |
|
---|---|
Returns: | the value from your collection |
check if SELinux is disabled
Returns: | bool, True if disabled, False otherwise |
---|
calls tempfile.mkdtemp, the temporary directory is prefixed with ‘conu-‘
Returns: | str, path to the directory |
---|
calls tempfile.mkstemp, the temporary file is prefixed with ‘conu-‘
Parameters: | dir – str, path to dir where the temporary file should be created |
---|---|
Returns: | tuple, (fd, filename) |
create random string of selected size
Parameters: | size – int, length of the string |
---|---|
Returns: | the string |
generate string which can be used as a filename for temporary file
run provided command on host system using the same user as you invoked this code, raises subprocess.CalledProcessError if it fails
Parameters: |
|
---|---|
Returns: | None or str |