Docker – Arrancar contenedor automáticamente
Para arrancar automáticamente un contenedor cuando se inicie Docker (cuando se encienda el sistema):
docker update --restart=always <contenedor>
Para arrancar automáticamente un contenedor cuando se inicie Docker (cuando se encienda el sistema):
docker update --restart=always <contenedor>
Para que el contenedor docker no se arranque antes de tener montadas las unidades nfs se hace lo siguiente: sudo systemctl edit docker.service (o sudo vi /etc/systemd/system/docker.service.d/override.conf) Añadir las siguientes líneas: ### Anything between here and the comment below will become the new contents of the file [Service] RequiresMountsFor=/mnt/montaje1 /mnt/montaje2 ### Lines below this comment…
Al copiar un texto que contenga varias líneas con tabuladores en vi, se descuadrarán. Para evitarlo, antes de pegar ejecutar :set paste Y después ejecutar :set nopaste
Al intentar arrancar el demonio docker consystemctl start docker obtenía este error: Failed to start Docker Application Container Engine Para solucionarlo: sudo rm /etc/docker/daemon.json
find -type f -exec grep -l "texto_busqueda" {} + y si queremos que la búsqueda sea exacta (por palabras) find -type f -exec grep -lw "texto_busqueda" {} +
SELECT LEAST(date_1, date_2) FROM DUAL;
Para saltar la ejecución y compilación de los tests: mvn -Dmaven.test.skip=true install Para compilar los tests, pero no ejecutarlos: mvn -Dmaven.test.skip=true install