title: Docker commands do not respond anymore
body: <p>Most of docker commands never end. I have to interrupt them manually with CTRL+C. Even simple commands like <code>docker ps</code> or <code>docker info</code> do not respond. </p>
  
  <p>However, <code>docker help</code> and <code>docker version</code> still work.</p>
  
  <p>I think there is something like a deadlock with a particular container, so commands related to containers won't complete.</p>
  
  <p>How to handle such a situation ?</p>
  
  <hr>
  
  <p>My docker version is 1.12.3. I don't use Swarm mode. The <code>docker logs</code> command doesn't work too. Using <code>dmesg</code> I can see a lot of I/O errors, but I don't know if it is related with my problem:</p>
  
  <pre><code>[12898.121287] loop: Write error at byte offset 8882749440, length 4096.
  [12898.122837] loop: Write error at byte offset 8883666944, length 4096.
  [12898.124685] loop: Write error at byte offset 8882814976, length 4096.
  [12898.126459] loop: Write error at byte offset 8883404800, length 4096.
  [12898.128201] loop: Write error at byte offset 8883470336, length 4096.
  [12898.129921] loop: Write error at byte offset 8883535872, length 4096.
  [12898.131774] loop: Write error at byte offset 8883601408, length 4096.
  [12898.133594] loop: Write error at byte offset 8883732480, length 4096.
  [12917.269786] loop: Write error at byte offset 8883798016, length 4096.
  [12917.270331] quiet_error: 632 callbacks suppressed
  [12917.270334] Buffer I/O error on device dm-6, logical block 1313320
  [12917.270540] lost page write due to I/O error on dm-6
  [12917.270543] Buffer I/O error on device dm-6, logical block 1313321
  [12917.270740] lost page write due to I/O error on dm-6
  [12917.270742] Buffer I/O error on device dm-6, logical block 1313322
  [12917.270957] lost page write due to I/O error on dm-6
  [12917.270959] Buffer I/O error on device dm-6, logical block 1313323
  [12917.271177] lost page write due to I/O error on dm-6
  [12917.271179] Buffer I/O error on device dm-6, logical block 1313324
  [12917.271377] lost page write due to I/O error on dm-6
  [12917.271379] Buffer I/O error on device dm-6, logical block 1313325
  [12917.271573] lost page write due to I/O error on dm-6
  [12917.301759] loop: Write error at byte offset 8883863552, length 4096.
  [12917.312038] loop: Write error at byte offset 8883929088, length 4096.
  [12917.312396] Buffer I/O error on device dm-6, logical block 1313328
  [12917.312635] lost page write due to I/O error on dm-6
  [12917.312638] Buffer I/O error on device dm-6, logical block 1313329
  [12917.312867] lost page write due to I/O error on dm-6
  [12917.312869] Buffer I/O error on device dm-6, logical block 1313330
  [12917.313121] lost page write due to I/O error on dm-6
  [12917.313123] Buffer I/O error on device dm-6, logical block 1313331
  [12917.313346] lost page write due to I/O error on dm-6
  [13090.853726] INFO: task kworker/u8:0:17212 blocked for more than 120 seconds.
  [13090.854055] "echo 0 &gt; /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  </code></pre>
  
  <p>Using the command <code>sudo systemctl status -l docker</code>, the following messages are printed, but I cannot tell if they are related:</p>
  
  <pre><code>dockerd[1344]: time="2016-11-24T17:49:01.184874648+01:00" level=warning msg="libcontainerd: container c9f35af1836bf856001ca6156663f713c1217a697e8d2451927c67797fb5a770 restart canceled"
  dockerd[1344]: time="2016-11-24T17:49:02.627116016+01:00" level=info msg="No non-localhost DNS nameservers are left in resolv.conf. Using default external servers : [nameserver 8.8.8.8 nameserver 8.8.4.4]"
  dockerd[1344]: time="2016-11-24T17:49:02.627152661+01:00" level=info msg="IPv6 enabled; Adding default IPv6 external servers : [nameserver 2001:4860:4860::8888 nameserver 2001:4860:4860::8844]"
  dockerd[1344]: time="2016-11-24T18:19:51.472701647+01:00" level=warning msg="libcontainerd: container c9f35af1836bf856001ca6156663f713c1217a697e8d2451927c67797fb5a770 restart canceled"
  dockerd[1344]: time="2016-11-24T18:19:56.712126199+01:00" level=info msg="No non-localhost DNS nameservers are left in resolv.conf. Using default external servers : [nameserver 8.8.8.8 nameserver 8.8.4.4]"
  dockerd[1344]: time="2016-11-24T18:19:56.712159759+01:00" level=info msg="IPv6 enabled; Adding default IPv6 external servers : [nameserver 2001:4860:4860::8888 nameserver 2001:4860:4860::8844]"
  dockerd[1344]: time="2016-11-24T18:34:24.301786606+01:00" level=info msg="No non-localhost DNS nameservers are left in resolv.conf. Using default external servers : [nameserver 8.8.8.8 nameserver 8.8.4.4]"
  dockerd[1344]: time="2016-11-24T18:34:24.302208751+01:00" level=info msg="IPv6 enabled; Adding default IPv6 external servers : [nameserver 2001:4860:4860::8888 nameserver 2001:4860:4860::8844]"
  </code></pre>