devcontainers / devcontainers/ci

Unable to prebuild devcontainer image (error command docker tag)

Aperta
#271 7 commenti 0 reazioni 1 assegnatario Rivendicata da @chrmarti Vedi su GitHub
bug info-needed
Lingua principale
TypeScript
Stelle
496
Fork
101
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

# Error
```
Error: Dev container build failed: Command failed: docker tag example_devcontainer_app ghcr.io/example/example-devcontainer:latest (exit code: undefined)
An error occurred building the container. Error: Command failed: docker tag example_devcontainer_app ghcr.io/example/example-devcontainer:latest
```

The error only occurs when trying to push the image, the simplest setup without `cacheFrom` and `push` works like a charm.

# Setup
```
.devcontainer/
├── devcontainer.json
├── docker-compose.yaml
└── Dockerfile
```

```yaml
build:
name: Build
runs-on: 16cores
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pre-build dev container image
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/example/example-devcontainer
cacheFrom: ghcr.io/example/example-devcontainer
push: always
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.