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…
SELECT LEAST(date_1, date_2) FROM DUAL;
DevOps, DataOps, MLOps y AIOps son cuatro enfoques clave en operaciones de TI (Tecnologías de la Información) que buscan automatizar y mejorar la entrega de productos y servicios. DevOps Enfoque: Colaboración entre desarrollo y operaciones para mejorar la entrega de software. Herramientas: Jenkins, Docker, Kubernetes. Principios: CI/CD, colaboración y automatización de procesos. Casos de uso:…
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
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
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" {} +