User Tools

Site Tools


informatica:linux:docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
informatica:linux:docker [2020/02/09 17:11]
jose [Cambiar politica de reinicio de contenedor]
informatica:linux:docker [2020/04/09 09:01] (current)
javi
Line 35: Line 35:
  
   sudo service docker restart   sudo service docker restart
 +
 +===== Habilitar debug =====
 +
 +https://​success.docker.com/​article/​how-do-i-enable-debug-logging-of-the-docker-daemon
 +
 +1. Editar:
 +
 +  sudo vim /​etc/​docker/​daemon.json
 +
 +Y añadir:
 +
 +<​code>​
 +{
 +    "​debug":​ true
 +}
 +</​code>​
 +
 +2. Recargar el servicio:
 +
 +  sudo kill -SIGHUP $(pidof dockerd)
 +  ​
 +3. Ver logs
 +
 +  sudo tail -F /​var/​log/​daemon.log
 +  ​
 +
 +
  
 ====== Ejecutar como no root ====== ====== Ejecutar como no root ======
informatica/linux/docker.txt · Last modified: 2020/04/09 09:01 by javi