devcontainers / devcontainers/ci

Unable to prebuild devcontainer image (error command docker tag)

オープン
#271 コメント 7 件 リアクション 0 件 担当者 1 名 @chrmarti が担当を希望しています GitHub で見る
bug info-needed
主要言語
TypeScript
スター
496
フォーク
101
PR マージ指標
30日以内にマージされた PR はありません

説明

# 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
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。