title: Ran out of Docker disk space
body: <p>I have this Docker command:</p>
  
  <pre><code>docker run -d mongo
  </code></pre>
  
  <p>this will build and run a mongodb server running in a docker container</p>
  
  <p>However, I get an error:</p>
  
  <pre><code>no space left on device
  </code></pre>
  
  <p>I am on MacOS, and using the newer versions of Docker which use hyper-v instead of VirtualBox (I think that's correct).</p>
  
  <p>Here is the exact error message from the <code>mongo</code> container:</p>
  
  <pre><code>$ docker logs efee16702c5756659d563b98d4ae0f58ecf1f1bba8a54f63443c0ae4b520ab4e
  about to fork child process, waiting until server is ready for connections.
  forked process: 21
  2017-05-04T20:23:51.412+0000 I CONTROL  [main] ***** SERVER RESTARTED *****
  2017-05-04T20:23:51.430+0000 I CONTROL  [main] ERROR: Cannot write pid file to /tmp/tmp.Lo035QkbfL: No space left on device
  ERROR: child process failed, exited with error number 1
  </code></pre>
  
  <p>Any idea how to fix this and prevent it from happening in future?</p>
  
  <p>As suggested, the output of <code>df -h</code> is:</p>
  
  <pre><code>Filesystem      Size   Used  Avail Capacity iused      ifree %iused  Mounted on
  /dev/disk1     465Gi  116Gi  349Gi    25% 1963838 4293003441    0%   /
  devfs          183Ki  183Ki    0Bi   100%     634          0  100%   /dev
  map -hosts       0Bi    0Bi    0Bi   100%       0          0  100%   /net
  map auto_home    0Bi    0Bi    0Bi   100%       0          0  100%   /home
  </code></pre>
  
  <p>Output of <code>docker info</code> is:</p>
  
  <pre><code>$ docker info
      Containers: 5
       Running: 0
       Paused: 0
       Stopped: 5
      Images: 741
      Server Version: 17.03.1-ce
      Storage Driver: overlay2
       Backing Filesystem: extfs
       Supports d_type: true
       Native Overlay Diff: true
      Logging Driver: json-file
      Cgroup Driver: cgroupfs
      Plugins: 
       Volume: local
       Network: bridge host ipvlan macvlan null overlay
      Swarm: inactive
      Runtimes: runc
      Default Runtime: runc
      Init Binary: docker-init
      containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
      runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
      init version: N/A (expected: 949e6facb77383876aeff8a6944dde66b3089574)
      Security Options:
       seccomp
        Profile: default
      Kernel Version: 4.9.13-moby
      Operating System: Alpine Linux v3.5
      OSType: linux
      Architecture: x86_64
      CPUs: 4
      Total Memory: 1.952 GiB
      Name: moby
      ID: OR4L:WYWW:FFAP:IDX3:B6UK:O2AN:UVTO:EPH6:GYSV:4GV4:L5WP:BQTH
      Docker Root Dir: /var/lib/docker
      Debug Mode (client): false
      Debug Mode (server): true
       File Descriptors: 17
       Goroutines: 30
       System Time: 2017-05-04T20:45:27.056157913Z
       EventsListeners: 1
      No Proxy: *.local, 169.254/16
      Registry: https://index.docker.io/v1/
      Experimental: true
      Insecure Registries:
       127.0.0.0/8
      Live Restore Enabled: false
  </code></pre>