How do I get access to build cache images?
- Langage dominant
- Go
- Étoiles
- 30.8k
- Forks
- 613
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
When building Docker images in Linux, Docker lists the intermediate containers as it is building. Using that information, I can troubleshoot build errors by doing a `docker run -it --entrypoint bash ` and then manually running the failing step in the container and diagnosing the problem. Is there a way to get this information from Colima?
See below for standard Docker build output:
```
Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container e310f773f285
---> 46fe879e475e
Step 3/89 : RUN ln -s /usr/bin/python3 /usr/bin/python
---> Running in 746c5a0174b9
Removing intermediate container 746c5a0174b9
---> 6026575ae4ed
Step 4/89 : ENV ASPNETCORE_URLS=http://+:80 DOTNET_RUNNING_IN_CONTAINER=true
---> Running in 664f383847a6
Removing intermediate container 664f383847a6
---> 75e6d249122a
Step 5/89 : RUN dotnet_version=3.1.9 && curl -SL --output dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Runtime/$dotnet_version/dotnet-runtime-$dotnet_version-linux-x64.tar.gz && mkdir -p /usr/share/dotnet && tar -ozxf dotnet.tar.gz -C /usr/share/dotnet && rm dotnet.tar.gz && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
---> Running in e8e75348c4bb
```
As you can see, the layer image ID for each step is listed.
Thanks for the great project!
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
The issue asks for a way to access intermediate container images during a Docker build in Colima, similar to standard Docker output. Look at Colima's build command implementation to see how it interfaces with the container runtime (containerd). Check if build cache or intermediate layer information is exposed. The first step is to understand the current build output format and where layer IDs are logged. 'Done' means the feature is implemented and the user can retrieve intermediate image IDs for debugging.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- docker, go
- Domaine
- cli, developer-experience
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 40/100