info:cursos:altran:docker:build

Aquesta és una revisió antiga del document


build

  • docker build
    • -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 «danling=true» : lista imágenes que no están tageadas
      • docker rmi $(docker images -f «danling=true» -q) : elimina las imágenes no tageadas
    • –build-arg KEY=VALUE [-t REPOSITORY:TAG]]
  • info/cursos/altran/docker/build.1531414915.txt.gz
  • Darrera modificació: 12/07/2018 10:01
  • per mate