diff --git a/src/Docker/Container.php b/src/Docker/Container.php
index <HASH>..<HASH> 100644
--- a/src/Docker/Container.php
+++ b/src/Docker/Container.php
@@ -164,7 +164,7 @@ class Container
      */
     public function getName()
     {
-        return $this->runtimeInformations['Name'];
+        return array_key_exists('Name', $this->runtimeInformations) ? $this->runtimeInformations['Name'] : null;
     }
 
     /**
diff --git a/src/Docker/Docker.php b/src/Docker/Docker.php
index <HASH>..<HASH> 100644
--- a/src/Docker/Docker.php
+++ b/src/Docker/Docker.php
@@ -117,7 +117,7 @@ class Docker
         $response = $this->client->send($request);
 
         if ($response->getStatusCode() !== 201) {
-            throw new UnexpectedStatusCodeException($response->getStatusCode());
+            throw new UnexpectedStatusCodeException($response->getStatusCode(), (string) $response->getContent());
         }
 
         $image = new Image();
check things exist before using them + fixed an exception throwing