info:cursos:altran:docker:build

Aquesta és una revisió antiga del document


build

  • docker build <opciones> .
    • -t REPOSITORY:TAG : crear a partir de un repositorio
    • -f Dockerfile.build [-t REPOSITORY:TAG] :si el Dockerfile no está en el sitio que se le espera
    • –no-cache [-t REPOSITORY:TAG]] : lo regenera todo (no tira de las caché locales)
    • force-rm [-t REPOSITORY:TAG]] : aunque haya problemas al «compilar», el contenedor se borra (contenedores <none> <none>)
      • docker images -f «dangling=true» : lista imágenes que no están tageadas
      • docker rmi $(docker images -f «dangling=true» -q) : elimina las imágenes no tageadas
    • –build-arg KEY=VALUE [-t REPOSITORY:TAG]]
  • info/cursos/altran/docker/build.1531836698.txt.gz
  • Darrera modificació: 17/07/2018 07:11
  • per mate