Guest User

Untitled

a guest
Nov 15th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. systemctl edit docker
  2.  
  3. [Service]
  4. ExecStart=
  5. ExecStart=/usr/bin/dockerd -H unix:///var/run/docker.sock -H tcp://192.168.2.11:2375
  6.  
  7. systemctl restart docker
  8.  
  9. -- Unit docker.service has finished shutting down.
  10. Nov 15 09:45:35 docker systemd[1]: Starting Docker Application Container Engine...
  11. -- Subject: Unit docker.service has begun start-up
  12. -- Defined-By: systemd
  13. -- Support: http://www.ubuntu.com/support
  14. --
  15. -- Unit docker.service has begun starting up.
  16. Nov 15 09:45:35 docker dockerd[27753]: Failed to load listeners: can't create unix socket /var/run/docker.sock: is a directory
  17. Nov 15 09:45:35 docker systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
  18. Nov 15 09:45:35 docker systemd[1]: docker.service: Failed with result 'exit-code'.
  19. Nov 15 09:45:35 docker systemd[1]: Failed to start Docker Application Container Engine.
  20. -- Subject: Unit docker.service has failed
  21. -- Defined-By: systemd
  22. -- Support: http://www.ubuntu.com/support
  23. --
  24. -- Unit docker.service has failed.
  25. --
  26. -- The result is RESULT.
  27.  
  28. sudo su
  29.  
  30. ls -la /var/run/docker.sock
  31.  
  32. rm -fr /var/run/docker.sock
  33.  
  34. systemctl edit docker
  35.  
  36. ls -la /var/run/docker.sock
  37. srw-rw---- 1 root docker 0 Nov 15 09:47 /var/run/docker.sock
Add Comment
Please, Sign In to add comment