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…
Se hace con la utilidad convert de ImageMagick Ejemplos Cambia tamaño imagen[ lo cambia a 300×300 para que se vea bien en el walkman convert -resize 300×300 descarga.jpg descarga.jpg Reducir tamaño de una imagen con buena calidad (por ejemplo para generar un pdf) convert -resize 60% -filter Lanczos -density 150 -quality 100 esb_original.png esb.png
Para mostrar caracteres extendidos en consola (acentos, etc) es suficiente con añadir en el script bat: chcp 65001
select * from tabla where dbms_lob.instr(campo, utl_raw.cast_to_raw(‘texto_a_buscar’))>0;
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" {} +
Lo utilizo con homepage Pasos Editar /lib/systemd/system/docker.service Modificar la línea: ExecStart=/usr/bin/docker daemon -H fd:// -H tcp://0.0.0.0:2375 Recargar la configuración y reiniciar el demonio: sudo systemctl daemon-reload sudo systemctl restart docker.service