src/Containers.php
/**
     * Specify whether the container exists
     *
     * @param string $id ID or name of the container
     * @return bool
     * @throws \GuzzleHttp\Exception\GuzzleException
     * @noinspection PhpFullyQualifiedNameUsageInspection
     */
Specify whether the container exists
@param string $id ID or name of the container
@return bool
@throws \GuzzleHttp\Exception\GuzzleException
@noinspection PhpFullyQualifiedNameUsageInspection
Specify whether the container exists @param string $id ID or name of the container @return bool @throws \ GuzzleHttp \ Exception \ GuzzleException @noinspection PhpFullyQualifiedNameUsageInspection
public function has(string $id): bool
    {
        try {
            $this->inspect($id);
            return true;
        } catch (DockerException) {
            return false;
        }
    }
public function has ( string $ id ) : bool { try { $ this -> inspect ( $ id ) ; return true ; } catch ( DockerException ) { return false ; } }
Specify whether the container exists
 @param string $id ID or name of the container
 @return bool
 @throws \GuzzleHttp\Exception\GuzzleException
 @noinspection PhpFullyQualifiedNameUsageInspection
Specify whether the container exists @param string $id ID or name of the container @return bool @throws \ GuzzleHttp \ Exception \ GuzzleException @noinspection PhpFullyQualifiedNameUsageInspection