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 «dangling=true»: lista imágenes que no están tageadasdocker rmi $(docker images -f «dangling=true» -q): elimina las imágenes no tageadas
–build-arg KEY=VALUE [-t REPOSITORY:TAG]]