docker compose commit
| Descripción | Create a new image from a service container's changes |
|---|---|
| Uso | docker compose commit [OPTIONS] SERVICE [REPOSITORY[:TAG]] |
Descripción
Create a new image from a service container's changes
Opciones
| Opción | Predeterminado | Descripción |
|---|---|---|
-a, --author | Author (e.g., "John Hannibal Smith [email protected]") | |
-c, --change | Apply Dockerfile instruction to the created image | |
--index | index of the container if service has multiple replicas. | |
-m, --message | Commit message | |
-p, --pause | true | Pause container during commit |